@font-face {
    font-family: "Samim";
    src: url("fonts/Samim.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Samim";
    src: url("fonts/Samim-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Yas";
    src: url("fonts/BYas.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap; 
}
@font-face {
    font-family: "Titr";
    src: url("fonts/BTitrTGEBold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tanha";
    src: url("fonts/Tanha.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Samim", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background: #f5f7fb;
    color: #333;
    min-height: 100vh;
}
.dashboard {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background: #fff;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
}
.sidebar-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.clinic-logo {
    font-size: 36px;
    color: #4361ee;
    margin-bottom: 15px;
}
.clinic-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
}
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.user-details h4 {
    margin-bottom: 5px;
    font-size: 16px;
    color: #1a1a2e;
}
.user-details .role {
    font-size: 12px;
    color: #666;
    background: #f0f2f5;
    padding: 3px 10px;
    border-radius: 20px;
}
.nav-menu {
    padding: 20px 0;
}
.nav-section {
    margin-bottom: 20px;
}
.nav-title {
    padding: 0 25px 10px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}
.nav-item:hover,
.nav-item.active {
    background: #f8f9fa;
    color: #4361ee;
    border-right-color: #4361ee;
}
.nav-item i {
    margin-left: 15px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}
.nav-badge {
    background: #f72585;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: auto;
}
.logout-btn {
    margin: 20px;
    padding: 12px;
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}
.logout-btn:hover {
    background: #fdd;
    transform: translateY(-2px);
}
.main-content {
    flex: 1;
    margin-right: 260px;
    padding: 20px;
}
.top-bar {
    background: #fff;
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.page-title h1 {
    color: #1a1a2e;
    font-size: 24px;
    margin-bottom: 5px;
}
.page-title p {
    color: #666;
    font-size: 14px;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #4361ee;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.current-date {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-top: 4px solid #4361ee;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 15px;
    flex-shrink: 0;
}
.stat-1 .stat-icon {
    background: rgba(76, 201, 240, 0.15);
    color: #4cc9f0;
}
.stat-2 .stat-icon {
    background: rgba(67, 97, 238, 0.15);
    color: #4361ee;
}
.stat-3 .stat-icon {
    background: rgba(248, 150, 30, 0.15);
    color: #f8961e;
}
.stat-4 .stat-icon {
    background: rgba(247, 37, 133, 0.15);
    color: #f72585;
}
.stat-info h3 {
    font-size: 28px;
    color: #1a1a2e;
}
.stat-info p {
    color: #666;
    font-size: 14px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.section-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
    flex-wrap: wrap;
    gap: 10px;
}
.section-header h3 {
    color: #1a1a2e;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn {
    padding: 10px 20px;
    background: #4361ee;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
}
.btn-success {
    background: #4cc9f0;
}
.btn-success:hover {
    background: #3ab4d4;
}
.btn-danger {
    background: #f72585;
}
.btn-danger:hover {
    background: #d41e6e;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}
.appointments-list {
    max-height: 500px;
    overflow-y: auto;
}
.appointment-item {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    border-right: 4px solid #4361ee;
    transition: all 0.2s;
}
.appointment-item:hover {
    background: #eef2ff;
    transform: translateX(-3px);
}
.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 5px;
}
.patient-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 16px;
}
.appointment-time {
    background: #4361ee;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.appointment-details {
    color: #666;
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.appointment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.action-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.action-btn.edit {
    background: rgba(76, 201, 240, 0.15);
    color: #4cc9f0;
}
.action-btn.edit:hover {
    background: #4cc9f0;
    color: #fff;
}
.action-btn.sms {
    background: rgba(67, 97, 238, 0.15);
    color: #4361ee;
}
.action-btn.sms:hover {
    background: #4361ee;
    color: #fff;
}
.action-btn.delete {
    background: rgba(247, 37, 133, 0.15);
    color: #f72585;
}
.action-btn.delete:hover {
    background: #f72585;
    color: #fff;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.quick-action {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}
.quick-action:hover {
    transform: translateY(-3px);
    border-color: #4361ee;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.1);
}
.quick-action i {
    font-size: 32px;
    color: #4361ee;
    margin-bottom: 12px;
    display: block;
}
.quick-action h4 {
    color: #1a1a2e;
    margin-bottom: 5px;
    font-size: 15px;
}
.quick-action p {
    color: #666;
    font-size: 12px;
}
.filters-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}
.form-group {
    margin-bottom: 10px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fafafa;
}
.form-control:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}
.table-container {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table td,
.table th {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}
.table tr:hover {
    background-color: #f8f9fa;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}
.status-pending {
    background: #fff3cd;
    color: #856404;
}
.status-confirmed {
    background: #d4edda;
    color: #155724;
}
.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}
.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}
.loading {
    text-align: center;
    padding: 50px;
}
.loading i {
    font-size: 36px;
    color: #4361ee;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}
.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}
.close-modal {
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.modal-body {
    padding: 25px;
}
.row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.kpi-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}
.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}
.kpi-completion .kpi-icon {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}
.kpi-cancellation .kpi-icon {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}
.kpi-patients .kpi-icon {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}
.kpi-appointments .kpi-icon {
    background: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
}
.kpi-card h3 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #1a1a2e;
}
.kpi-card p {
    color: #666;
    font-size: 14px;
}
.doctor-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}
.doctor-card:hover {
    transform: translateY(-3px);
}
.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.doctor-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.success-rate {
    font-size: 24px;
    font-weight: 700;
}
.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
    text-align: center;
}
.stat-badge {
    padding: 5px;
    border-radius: 8px;
    font-size: 12px;
}
.date-field {
    position: relative;
}
.persian-date-input {
    direction: ltr;
    text-align: right;
    cursor: pointer;
    background: #fff !important;
    color: #333 !important;
}
.cal-pop {
    position: absolute;
    top: calc(100%+8px);
    right: 0;
    width: 280px;
    background: #161922;
    border: 1px solid #2a2f3a;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    padding: 12px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}
.date-field.open .cal-pop {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.cal-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #2a2f3a;
    background: #1c2029;
    color: #e9ebf0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.cal-nav-btn:hover {
    background: rgba(108, 140, 255, 0.14);
    border-color: #6c8cff;
}
.cal-title {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #e9ebf0;
}
.cal-title select {
    background: #1c2029;
    color: #e9ebf0;
    border: 1px solid #2a2f3a;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.cal-weekdays span {
    text-align: center;
    font-size: 11px;
    color: #8b90a0;
    padding: 4px 0;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 13px;
    cursor: pointer;
    color: #e9ebf0;
    border: 1px solid transparent;
    background: 0 0;
    transition: background 0.12s ease;
}
.cal-day.other-month {
    color: #454b5c;
}
.cal-day:hover:not(.other-month) {
    background: #1c2029;
    border-color: #2a2f3a;
}
.cal-day.today {
    border-color: #6c8cff;
    color: #6c8cff;
}
.cal-day.selected {
    background: #6c8cff;
    color: #0b0d12;
    font-weight: 700;
}
.cal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #2a2f3a;
}
.cal-footer button {
    background: 0 0;
    border: none;
    color: #6c8cff;
    font-size: 12.5px;
    cursor: pointer;
    padding: 4px 6px;
    font-family: inherit;
}
.cal-footer button:hover {
    text-decoration: underline;
}
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-260px);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-right: 0;
    }
    .menu-toggle {
        display: block;
    }
}
@media (max-width: 768px) {
    .row-2col {
        grid-template-columns: 1fr;
    }
    .filter-row {
        grid-template-columns: 1fr;
    }
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .top-actions {
        justify-content: center;
    }
    .page-title h1 {
        font-size: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cal-pop {
        width: 260px;
        right: -20px;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 450px;
    width: 100%;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    background: #1a1a2e;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transform: translateX(calc(100%+40px));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-right: 5px solid #4361ee;
    backdrop-filter: blur(10px);
    min-width: 320px;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.hide {
    transform: translateX(calc(100%+40px));
    opacity: 0;
}
.toast-success {
    border-right-color: #28a745;
    background: linear-gradient(135deg, #0d1a0d, #1a2e1a);
}
.toast-success .toast-icon {
    color: #28a745;
}
.toast-error {
    border-right-color: #dc3545;
    background: linear-gradient(135deg, #1a0d0d, #2e1a1a);
}
.toast-error .toast-icon {
    color: #dc3545;
}
.toast-warning {
    border-right-color: #ffc107;
    background: linear-gradient(135deg, #1a180d, #2e2a1a);
}
.toast-warning .toast-icon {
    color: #ffc107;
}
.toast-info {
    border-right-color: #17a2b8;
    background: linear-gradient(135deg, #0d181a, #1a2a2e);
}
.toast-info .toast-icon {
    color: #17a2b8;
}
.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    width: 32px;
    text-align: center;
}
.toast-content {
    flex: 1;
    min-width: 0;
}
.toast-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.toast-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.6;
    word-wrap: break-word;
}
.toast-close {
    background: 0 0;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    margin-top: -4px;
    margin-right: -4px;
    transition: color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.toast-close:hover {
    color: rgba(255, 255, 255, 0.8);
}
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #3a0ca3);
    border-radius: 0 0 16px 16px;
    transition: width 0.1s linear;
}
.toast-success .toast-progress {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}
.toast-error .toast-progress {
    background: linear-gradient(90deg, #dc3545, #b02a37);
}
.toast-warning .toast-progress {
    background: linear-gradient(90deg, #ffc107, #d39e00);
}
.toast-info .toast-progress {
    background: linear-gradient(90deg, #17a2b8, #117a8b);
}
.toast-container-bottom {
    top: auto;
    bottom: 20px;
    left: 20px;
}
.toast-container-top-right {
    left: auto;
    right: 20px;
}
.toast-container-bottom-right {
    top: auto;
    bottom: 20px;
    left: auto;
    right: 20px;
}
.toast-container-center {
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}
@media (max-width: 480px) {
    .toast-container {
        max-width: calc(100% - 20px);
        top: 10px;
        left: 10px;
        right: 10px;
    }
    .toast {
        min-width: unset;
        width: 100%;
        padding: 14px 18px;
        border-radius: 12px;
    }
    .toast-title {
        font-size: 14px;
    }
    .toast-message {
        font-size: 12px;
    }
}
.night-mode {
    background: #0d1117 !important;
    color: #e6edf3 !important;
}
.night-mode .sidebar {
    background: #161b22 !important;
    border-left: 1px solid #30363d !important;
    box-shadow: none !important;
}
.night-mode .sidebar-header {
    border-bottom: 1px solid #30363d !important;
}
.night-mode .sidebar-header .clinic-name {
    color: #e6edf3 !important;
}
.night-mode .user-info {
    border-bottom: 1px solid #30363d !important;
}
.night-mode .user-details h4 {
    color: #e6edf3 !important;
}
.night-mode .user-details .role {
    background: #21262d !important;
    color: #8b949e !important;
}
.night-mode .nav-item {
    color: #8b949e !important;
}
.night-mode .nav-item.active,
.night-mode .nav-item:hover {
    background: #21262d !important;
    color: #58a6ff !important;
    border-right-color: #58a6ff !important;
}
.night-mode .nav-title {
    color: #484f58 !important;
}
.night-mode .logout-btn {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #f85149 !important;
}
.night-mode .logout-btn:hover {
    background: #2d1b1b !important;
}
.night-mode .top-bar {
    background: #161b22 !important;
    box-shadow: 0 1px 0 #30363d !important;
}
.night-mode .page-title h1 {
    color: #e6edf3 !important;
}
.night-mode .page-title p {
    color: #8b949e !important;
}
.night-mode .current-date {
    background: linear-gradient(135deg, #1f6feb, #1a5bc4) !important;
}
.night-mode .filters-card,
.night-mode .quick-action,
.night-mode .section-card,
.night-mode .stat-card,
.night-mode .table-container {
    background: #161b22 !important;
    box-shadow: 0 1px 0 #30363d !important;
    border-color: #30363d !important;
}
.night-mode .stat-card {
    border-top-color: #58a6ff !important;
}
.night-mode .stat-info h3 {
    color: #e6edf3 !important;
}
.night-mode .stat-info p {
    color: #8b949e !important;
}
.night-mode .section-header {
    border-bottom-color: #30363d !important;
}
.night-mode .section-header h3 {
    color: #e6edf3 !important;
}
.night-mode .appointment-item {
    background: #0d1117 !important;
    border-right-color: #58a6ff !important;
}
.night-mode .appointment-item:hover {
    background: #161b22 !important;
}
.night-mode .patient-name {
    color: #e6edf3 !important;
}
.night-mode .appointment-details {
    color: #8b949e !important;
}
.night-mode .form-control {
    background: #0d1117 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}
.night-mode .form-control:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
}
.night-mode .form-group label {
    color: #e6edf3 !important;
}
.night-mode .table th {
    background: #0d1117 !important;
    color: #e6edf3 !important;
    border-bottom-color: #30363d !important;
}
.night-mode .table td {
    border-bottom-color: #21262d !important;
    color: #e6edf3 !important;
}
.night-mode .table tr:hover {
    background: #161b22 !important;
}
.night-mode .modal-content {
    background: #161b22 !important;
}
.night-mode .modal-header {
    background: linear-gradient(135deg, #1f6feb, #1a5bc4) !important;
}
.night-mode .modal-body {
    background: #161b22 !important;
}
.night-mode .modal-body .form-group label {
    color: #e6edf3 !important;
}
.night-mode .modal-body .form-control {
    background: #0d1117 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}
.night-mode .close-modal {
    color: #e6edf3 !important;
}
.night-mode .status-pending {
    background: #2d1b0d !important;
    color: #f0883e !important;
}
.night-mode .status-confirmed {
    background: #0d2d1b !important;
    color: #3fb950 !important;
}
.night-mode .status-completed {
    background: #0d1b2d !important;
    color: #58a6ff !important;
}
.night-mode .status-cancelled {
    background: #2d0d0d !important;
    color: #f85149 !important;
}
.night-mode .status-badge[style*="background:#6f42c1"] {
    background: #6f42c1 !important;
}
.night-mode .status-badge[style*="background:#17a2b8"] {
    background: #1f6f8b !important;
}
.night-mode .status-badge[style*="background:#28a745"] {
    background: #1a7f37 !important;
}
.night-mode .status-badge[style*="background:#ffc107"] {
    background: #9e6a03 !important;
    color: #e6edf3 !important;
}
.night-mode .action-btn.edit {
    background: rgba(88, 166, 255, 0.15) !important;
    color: #58a6ff !important;
}
.night-mode .action-btn.edit:hover {
    background: #1f6feb !important;
    color: #fff !important;
}
.night-mode .action-btn.sms {
    background: rgba(63, 185, 80, 0.15) !important;
    color: #3fb950 !important;
}
.night-mode .action-btn.sms:hover {
    background: #1a7f37 !important;
    color: #fff !important;
}
.night-mode .action-btn.action-delete,
.night-mode .action-btn.delete {
    background: rgba(248, 81, 73, 0.15) !important;
    color: #f85149 !important;
}
.night-mode .action-btn.action-delete:hover,
.night-mode .action-btn.delete:hover {
    background: #da3633 !important;
    color: #fff !important;
}
.night-mode .btn {
    background: #1f6feb !important;
}
.night-mode .btn:hover {
    background: #1a5bc4 !important;
}
.night-mode .btn-success {
    background: #1a7f37 !important;
}
.night-mode .btn-success:hover {
    background: #146c2e !important;
}
.night-mode .btn-danger {
    background: #da3633 !important;
}
.night-mode .btn-danger:hover {
    background: #b62324 !important;
}
.night-mode .empty-state {
    color: #8b949e !important;
}
.night-mode .doctor-card {
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
}
.night-mode .doctor-name {
    color: #e6edf3 !important;
}
.night-mode .success-rate {
    color: #3fb950 !important;
}
.night-mode .stat-badge[style*="background:#d4edda"] {
    background: #0d2d1b !important;
    color: #3fb950 !important;
}
.night-mode .stat-badge[style*="background:#d1ecf1"] {
    background: #0d1b2d !important;
    color: #58a6ff !important;
}
.night-mode .stat-badge[style*="background:#fff3cd"] {
    background: #2d1b0d !important;
    color: #f0883e !important;
}
.night-mode .stat-badge[style*="background:#f8d7da"] {
    background: #2d0d0d !important;
    color: #f85149 !important;
}
.night-mode .progress-bar {
    background: #21262d !important;
}
.night-mode .quick-action {
    border-color: #30363d !important;
}
.night-mode .quick-action:hover {
    border-color: #58a6ff !important;
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.05) !important;
}
.night-mode .quick-action h4 {
    color: #e6edf3 !important;
}
.night-mode .quick-action p {
    color: #8b949e !important;
}
.night-mode .quick-action i {
    color: #58a6ff !important;
}
.night-mode .date-field .persian-date-input {
    background: #0d1117 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
}
.night-mode .date-field .persian-date-input:focus {
    border-color: #58a6ff !important;
}
.night-mode .cal-pop {
    background: #161b22 !important;
    border-color: #30363d !important;
}
.night-mode .cal-nav-btn {
    background: #0d1117 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}
.night-mode .cal-nav-btn:hover {
    background: #1f6feb !important;
    border-color: #1f6feb !important;
}
.night-mode .cal-title {
    color: #e6edf3 !important;
}
.night-mode .cal-title select {
    background: #0d1117 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
}
.night-mode .cal-weekdays span {
    color: #8b949e !important;
}
.night-mode .cal-day {
    color: #e6edf3 !important;
}
.night-mode .cal-day.other-month {
    color: #484f58 !important;
}
.night-mode .cal-day:hover:not(.other-month) {
    background: #21262d !important;
    border-color: #30363d !important;
}
.night-mode .cal-day.today {
    border-color: #58a6ff !important;
    color: #58a6ff !important;
}
.night-mode .cal-day.selected {
    background: #1f6feb !important;
    color: #fff !important;
}
.night-mode .cal-footer {
    border-top-color: #30363d !important;
}
.night-mode .cal-footer button {
    color: #58a6ff !important;
}
.night-mode .cal-footer button:hover {
    color: #79c0ff !important;
}
.night-mode .toast {
    background: #161b22 !important;
    border-color: #30363d !important;
}
.night-mode .toast-title {
    color: #e6edf3 !important;
}
.night-mode .toast-message {
    color: #8b949e !important;
}
.night-mode .kpi-card {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
}
.night-mode .kpi-card h3 {
    color: #e6edf3 !important;
}
.night-mode .kpi-card p {
    color: #8b949e !important;
}
.night-mode .payment-item {
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
}
.night-mode .payment-item h4 {
    color: #e6edf3 !important;
}
.night-mode .payment-item p {
    color: #8b949e !important;
}
.night-mode-toggle {
    background: 0 0;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.night-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.night-mode .night-mode-toggle {
    color: #f0e6d0;
}
.night-mode .night-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}
.night-mode .table thead th {
    background: #0d1117 !important;
    color: #e6edf3 !important;
    border-bottom: 2px solid #30363d !important;
    border-color: #30363d !important;
}
.night-mode .table tbody td {
    background: #161b22 !important;
    color: #e6edf3 !important;
    border-bottom: 1px solid #21262d !important;
}
.night-mode .table tbody tr:nth-of-type(even) td {
    background: #0d1117 !important;
}
.night-mode .table tbody tr:hover td {
    background: #1c2333 !important;
}
.night-mode .table tbody tr {
    background: #161b22 !important;
}
.night-mode #discountTable th {
    background: #0d1117 !important;
    color: #e6edf3 !important;
    border-bottom: 2px solid #30363d !important;
    border-color: #30363d !important;
}
.night-mode #discountTable td {
    background: #161b22 !important;
    color: #e6edf3 !important;
    border-bottom: 1px solid #21262d !important;
}
.night-mode #discountTable tr:nth-of-type(even) td {
    background: #0d1117 !important;
}
.night-mode #discountTable tr:hover td {
    background: #1c2333 !important;
}
.night-mode #discountTable .status-badge.status-confirmed {
    background: #1a7f37 !important;
    color: #3fb950 !important;
    border: 1px solid #2ea043 !important;
}
.night-mode #discountTable .action-btn.action-delete {
    background: rgba(248, 81, 73, 0.15) !important;
    color: #f85149 !important;
}
.night-mode #discountTable .action-btn.action-delete:hover {
    background: #da3633 !important;
    color: #fff !important;
}
.night-mode #discountTable .badge {
    background: #1a7f37 !important;
    color: #e6edf3 !important;
}
.night-mode #discountTable .empty-state {
    color: #8b949e !important;
}




/* ===== Custom Confirm Modal (NEW) ===== */
        .confirm-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            z-index: 99999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .confirm-modal-box {
            background: #fff;
            border-radius: 24px;
            max-width: 440px;
            width: 100%;
            padding: 30px 28px 24px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.3);
            text-align: center;
            animation: confirmFadeIn 0.25s ease;
        }
        .confirm-modal-icon {
            font-size: 48px;
            color: #f72585;
            margin-bottom: 12px;
        }
        .confirm-modal-title {
            font-size: 20px;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 8px;
        }
        .confirm-modal-message {
            font-size: 15px;
            color: #555;
            line-height: 1.6;
            margin-bottom: 24px;
        }
        .confirm-modal-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }
        .confirm-modal-actions .btn {
            min-width: 100px;
            padding: 12px 20px;
            font-weight: 600;
        }
        .confirm-modal-actions .btn-cancel {
            background: #e9ecef;
            color: #333;
        }
        .confirm-modal-actions .btn-cancel:hover {
            background: #dee2e6;
        }
        .confirm-modal-actions .btn-danger {
            background: #dc3545;
        }
        .confirm-modal-actions .btn-danger:hover {
            background: #c82333;
        }
        @keyframes confirmFadeIn {
            from { opacity: 0; transform: scale(0.96) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .night-mode .confirm-modal-box {
            background: #161b22;
        }
        .night-mode .confirm-modal-title {
            color: #e6edf3;
        }
        .night-mode .confirm-modal-message {
            color: #8b949e;
        }
        .night-mode .confirm-modal-actions .btn-cancel {
            background: #21262d;
            color: #e6edf3;
        }
        .night-mode .confirm-modal-actions .btn-cancel:hover {
            background: #30363d;
        }
        .night-mode .confirm-modal-icon {
            color: #f85149;
        }

        /* Toast enhancements */
        .toast-warning .toast-icon { color: #ffc107; }
        .toast-warning .toast-progress { background: linear-gradient(90deg,#ffc107,#d39e00); }







