
/*
|--------------------------------------------------------------------------
| TC HEALTHCARE INTERNATIONAL
| DOCTOR PORTAL STYLESHEET
|--------------------------------------------------------------------------
|
| File:
| /doctor/assets/css/doctor.css
|
| Theme:
| Green, white and light grey
|
| Includes:
| - Doctor portal layout
| - Sidebar
| - Topbar
| - Dashboard
| - Cards
| - Forms
| - Tables
| - Alerts
| - Profile
| - Login
| - Signup
| - Responsive navigation
|
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   1. ROOT VARIABLES AND RESET
========================================================================== */

:root {
    --doctor-primary: #15803d;
    --doctor-primary-dark: #14532d;
    --doctor-primary-light: #dcfce7;
    --doctor-primary-hover: #166534;

    --doctor-secondary: #16a34a;

    --doctor-white: #ffffff;
    --doctor-background: #f8fafc;
    --doctor-surface: #ffffff;

    --doctor-text: #172b24;
    --doctor-text-muted: #64748b;

    --doctor-border: #e2e8f0;

    --doctor-success: #15803d;
    --doctor-success-bg: #dcfce7;

    --doctor-warning: #b45309;
    --doctor-warning-bg: #fef3c7;

    --doctor-danger: #b91c1c;
    --doctor-danger-bg: #fee2e2;

    --doctor-info: #0369a1;
    --doctor-info-bg: #e0f2fe;

    --doctor-sidebar-width: 260px;
    --doctor-topbar-height: 76px;

    --doctor-radius-sm: 8px;
    --doctor-radius: 12px;
    --doctor-radius-lg: 18px;

    --doctor-shadow-sm:
        0 2px 8px rgba(15, 23, 42, 0.04);

    --doctor-shadow:
        0 8px 24px rgba(15, 23, 42, 0.06);

    --doctor-transition: 0.25s ease;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body.doctor-body {
    min-height: 100vh;
    margin: 0;
    background: var(--doctor-background);
    color: var(--doctor-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


body.doctor-body.doctor-sidebar-open {
    overflow: hidden;
}


.doctor-body button,
.doctor-body input,
.doctor-body select,
.doctor-body textarea {
    font: inherit;
}


.doctor-body button,
.doctor-body a {
    -webkit-tap-highlight-color: transparent;
}


.doctor-body a {
    color: var(--doctor-primary);
    text-decoration: none;
}


.doctor-body a:hover {
    color: var(--doctor-primary-hover);
}


.doctor-body img {
    max-width: 100%;
}


.doctor-body h1,
.doctor-body h2,
.doctor-body h3,
.doctor-body h4,
.doctor-body h5,
.doctor-body h6 {
    margin-top: 0;
    color: var(--doctor-text);
    line-height: 1.35;
}


.doctor-body p {
    margin-top: 0;
}


.doctor-body button:focus-visible,
.doctor-body a:focus-visible,
.doctor-body input:focus-visible,
.doctor-body select:focus-visible,
.doctor-body textarea:focus-visible {
    outline: 3px solid rgba(21, 128, 61, 0.25);
    outline-offset: 3px;
}

/* ==========================================================================
   2. MAIN PORTAL LAYOUT
========================================================================== */

.doctor-layout {
    width: 100%;
    min-height: 100vh;
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Main area beside fixed sidebar
|--------------------------------------------------------------------------
*/

.doctor-main-wrapper {
    width: calc(100% - var(--doctor-sidebar-width));
    min-width: 0;
    min-height: 100vh;

    margin-left: var(--doctor-sidebar-width);

    display: flex;
    flex-direction: column;

    transition:
        width var(--doctor-transition),
        margin-left var(--doctor-transition);
}


/*
|--------------------------------------------------------------------------
| Main content
|--------------------------------------------------------------------------
*/

.doctor-main {
    width: 100%;
    min-width: 0;
    flex: 1;

    min-height: calc(
        100vh - var(--doctor-topbar-height)
    );

    padding: 28px;

    overflow-x: hidden;
}


/*
|--------------------------------------------------------------------------
| Content container
|--------------------------------------------------------------------------
*/

.doctor-container {
    width: 100%;
    max-width: 1600px;
    min-width: 0;

    margin-left: auto;
    margin-right: auto;
}


/* Used only on pages that actually use this class */
.doctor-content {
    width: 100%;
    max-width: 1600px;

    margin-left: auto;
    margin-right: auto;

    min-width: 0;

    flex: 1;
}


.doctor-content > *:first-child {
    margin-top: 0;
}
/* ==========================================================================
   3. PAGE HEADINGS
========================================================================== */

.doctor-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}


.doctor-page-heading h2 {
    margin-bottom: 6px;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.5px;
}


.doctor-page-heading p {
    margin-bottom: 0;
    color: var(--doctor-text-muted);
    font-size: 14px;
}


.doctor-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}


.doctor-page-header h1 {
    margin: 0 0 6px;
    color: var(--doctor-text);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 750;
}


.doctor-page-header p {
    margin: 0;
    color: var(--doctor-text-muted);
    font-size: 15px;
}


/* ==========================================================================
   4. SIDEBAR
========================================================================== */

.doctor-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;

    width: var(--doctor-sidebar-width);
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--doctor-primary-dark);
    color: var(--doctor-white);

    box-shadow:
        4px 0 20px rgba(15, 23, 42, 0.08);

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.3)
        transparent;
}


.doctor-sidebar::-webkit-scrollbar {
    width: 5px;
}


.doctor-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}


/* Sidebar brand */

.doctor-sidebar-brand {
    min-height: 88px;
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


.doctor-sidebar-brand-link {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--doctor-white) !important;
}


.doctor-sidebar-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    object-fit: contain;

    padding: 3px;

    background: var(--doctor-white);
    border-radius: 10px;
}


.doctor-sidebar-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.doctor-sidebar-brand-text strong {
    color: var(--doctor-white);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 750;
}


.doctor-sidebar-brand-text span {
    margin-top: 3px;
    color: #bbf7d0;
    font-size: 11px;
    letter-spacing: 0.4px;
}


.doctor-sidebar-close {
    display: none;

    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.1);
    color: var(--doctor-white);

    cursor: pointer;
}


/* Sidebar profile */

.doctor-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 22px 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


.doctor-sidebar-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    background: #bbf7d0;
    color: var(--doctor-primary-dark);

    font-size: 15px;
    font-weight: 800;
}


.doctor-sidebar-profile-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.doctor-sidebar-profile-info strong {
    overflow: hidden;

    color: var(--doctor-white);
    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.doctor-sidebar-profile-info span {
    margin-top: 3px;
    color: #bbf7d0;
    font-size: 11px;
}


.doctor-sidebar-profile-info small {
    margin-top: 3px;

    overflow-wrap: anywhere;

    color: #dcfce7;
    font-size: 10px;
}


/* Sidebar navigation */

.doctor-sidebar-section-label {
    padding: 24px 20px 10px;

    color: #bbf7d0;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.doctor-sidebar-navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 0 12px 20px;
}


.doctor-sidebar-link {
    position: relative;

    min-height: 46px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 13px;

    border-radius: 9px;

    color: #e2fbe9 !important;

    font-size: 13px;
    font-weight: 550;

    transition:
        background var(--doctor-transition),
        color var(--doctor-transition),
        transform var(--doctor-transition);
}


.doctor-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--doctor-white) !important;
}


.doctor-sidebar-link:active {
    transform: scale(0.99);
}


.doctor-sidebar-link.active {
    background: var(--doctor-white);
    color: var(--doctor-primary-dark) !important;
    font-weight: 750;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}


.doctor-sidebar-link-icon {
    width: 22px;
    flex: 0 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
}


.doctor-sidebar-link-label {
    min-width: 0;
    flex: 1;
}


.doctor-sidebar-active-indicator {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;

    border-radius: 50%;
    background: var(--doctor-primary);
}


.doctor-sidebar-bottom {
    margin-top: auto;

    padding: 15px 12px 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


.doctor-sidebar-website-link {
    margin-bottom: 5px;
}


.doctor-sidebar-external-icon {
    font-size: 10px;
    opacity: 0.8;
}


.doctor-sidebar-link.doctor-sidebar-logout {
    color: #fecaca !important;
}


.doctor-sidebar-link.doctor-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--doctor-white) !important;
}


.doctor-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 18px 8px 0;

    color: #bbf7d0;
    font-size: 10px;
}


.doctor-sidebar-footer-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    border-radius: 50%;
    background: #4ade80;

    box-shadow:
        0 0 0 4px rgba(74, 222, 128, 0.12);
}


/* Sidebar overlay */

.doctor-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;

    visibility: hidden;

    background: rgba(15, 23, 42, 0.55);

    opacity: 0;

    transition:
        opacity var(--doctor-transition),
        visibility var(--doctor-transition);
}


.doctor-sidebar-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}


/* ==========================================================================
   5. TOPBAR
========================================================================== */

.doctor-topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    min-height: var(--doctor-topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 14px 28px;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--doctor-border);

    box-shadow: var(--doctor-shadow-sm);

    backdrop-filter: blur(10px);
}


.doctor-topbar-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}


.doctor-menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: none;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--doctor-border);
    border-radius: 10px;

    background: var(--doctor-white);
    color: var(--doctor-primary-dark);

    font-size: 17px;

    cursor: pointer;

    transition: var(--doctor-transition);
}


.doctor-menu-toggle:hover {
    border-color: var(--doctor-primary);
    background: var(--doctor-primary-light);
}


.doctor-topbar-title {
    margin: 0;

    font-size: 19px;
    font-weight: 800;

    letter-spacing: -0.3px;
}


.doctor-topbar-subtitle {
    display: block;

    margin-top: 3px;

    color: var(--doctor-text-muted);
    font-size: 12px;
}


.doctor-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}


.doctor-topbar-reference {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 13px;

    border: 1px solid #bbf7d0;
    border-radius: 9px;

    background: #f0fdf4;

    color: var(--doctor-primary-dark);

    font-size: 12px;
}


.doctor-topbar-reference > i {
    font-size: 15px;
}


.doctor-topbar-reference strong {
    overflow-wrap: anywhere;
    font-weight: 800;
}


/* ==========================================================================
   6. DASHBOARD
========================================================================== */

.doctor-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 25px;
}


.doctor-stat-card {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 15px;

    min-height: 105px;

    padding: 20px;

    background: var(--doctor-white);

    border: 1px solid var(--doctor-border);

    border-radius: var(--doctor-radius);

    box-shadow: var(--doctor-shadow-sm);

    transition:
        transform var(--doctor-transition),
        box-shadow var(--doctor-transition);
}


.doctor-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--doctor-shadow);
}


.doctor-stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--doctor-primary-light);
    color: var(--doctor-primary);

    font-size: 20px;
}


.doctor-stat-card strong {
    display: block;

    margin-bottom: 4px;

    color: var(--doctor-text);

    font-size: 25px;
    line-height: 1;
    font-weight: 800;
}


.doctor-stat-card span {
    display: block;

    color: var(--doctor-text-muted);

    font-size: 13px;
}


.doctor-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 28px;
}


/* Dashboard grid */

.doctor-dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(320px, 0.9fr);

    gap: 22px;

    align-items: start;
}


/* ==========================================================================
   7. CARDS
========================================================================== */

.doctor-card {
    min-width: 0;

    margin-bottom: 24px;

    border: 1px solid var(--doctor-border);

    border-radius: var(--doctor-radius);

    background: var(--doctor-surface);

    box-shadow: var(--doctor-shadow-sm);

    overflow: hidden;
}


.doctor-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 14px;

    padding: 21px 22px;

    border-bottom: 1px solid var(--doctor-border);
}


.doctor-card-header h2,
.doctor-card-header h3 {
    margin: 0 0 5px;

    color: var(--doctor-text);

    font-size: 18px;
    font-weight: 800;
}


.doctor-card-header p {
    margin: 0;

    color: var(--doctor-text-muted);

    font-size: 13px;
}


.doctor-card-header > a {
    color: var(--doctor-primary);

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}


.doctor-card-header > a:hover {
    color: var(--doctor-primary-dark);
    text-decoration: underline;
}


.doctor-card-body {
    min-width: 0;
    padding: 22px;
}


.doctor-card-footer {
    display: flex;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 10px;

    padding: 18px 22px;

    border-top: 1px solid var(--doctor-border);
}


/* ==========================================================================
   8. QUICK ACTIONS
========================================================================== */

.doctor-quick-actions {
    display: flex;
    flex-direction: column;
}


.doctor-quick-actions a {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 17px 22px;

    border-bottom: 1px solid var(--doctor-border);

    color: var(--doctor-text);

    transition:
        background var(--doctor-transition),
        padding-left var(--doctor-transition);
}


.doctor-quick-actions a:last-child {
    border-bottom: 0;
}


.doctor-quick-actions a:hover {
    background: #f8fafc;
    padding-left: 27px;
}


.doctor-quick-actions > a > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--doctor-primary-light);
    color: var(--doctor-primary);

    font-size: 17px;
}


.doctor-quick-actions strong {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;
    font-weight: 700;
}


.doctor-quick-actions span {
    display: block;

    color: var(--doctor-text-muted);

    font-size: 12px;
    line-height: 1.4;
}


/* ==========================================================================
   9. PROFILE
========================================================================== */

.doctor-profile-summary {
    padding: 25px 22px;
    text-align: center;
}


.doctor-profile-avatar {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    border: 3px solid #bbf7d0;
    border-radius: 50%;

    background: var(--doctor-primary-light);
    color: var(--doctor-primary-dark);

    font-size: 23px;
    font-weight: 800;

    letter-spacing: 1px;
}


.doctor-profile-summary h3 {
    margin: 0 0 5px;

    color: var(--doctor-text);

    font-size: 18px;
    font-weight: 700;
}


.doctor-profile-summary > p {
    margin: 0 0 23px;

    color: var(--doctor-text-muted);

    font-size: 13px;
}


.doctor-profile-details {
    display: grid;

    gap: 0;

    text-align: left;

    border-top: 1px solid var(--doctor-border);
}


.doctor-profile-details > div {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 13px 0;

    border-bottom: 1px solid var(--doctor-border);
}


.doctor-profile-details > div:last-child {
    border-bottom: 0;
}


.doctor-profile-details span {
    color: var(--doctor-text-muted);

    font-size: 11px;
    font-weight: 650;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}


.doctor-profile-details strong {
    color: var(--doctor-text);

    font-size: 13px;
    font-weight: 600;

    overflow-wrap: anywhere;
}


/* Full profile header */

.doctor-profile-header {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}


.doctor-profile-header .doctor-profile-avatar {
    width: 90px;
    height: 90px;
    flex-basis: 90px;

    font-size: 28px;
}


.doctor-profile-header h2 {
    margin-bottom: 5px;
    font-size: 21px;
}


.doctor-profile-header p {
    margin-bottom: 5px;

    color: var(--doctor-text-muted);

    font-size: 12px;
}


/* ==========================================================================
   10. STATUS BADGES
========================================================================== */

.doctor-status,
.doctor-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 6px 11px;

    border: 1px solid transparent;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 800;

    line-height: 1.4;

    white-space: nowrap;
}


.doctor-status-badge {
    padding: 8px 14px;

    background: var(--doctor-primary-light);
    color: var(--doctor-primary-dark);

    font-size: 13px;
}


.doctor-status-badge i {
    color: var(--doctor-primary);
    font-size: 7px;
}


.doctor-status-pending {
    border-color: #fde68a;

    background: var(--doctor-warning-bg);
    color: #92400e;
}


.doctor-status-confirmed,
.doctor-status-active,
.doctor-status-completed {
    border-color: #bbf7d0;

    background: var(--doctor-success-bg);
    color: #166534;
}


.doctor-status-cancelled,
.doctor-status-suspended,
.doctor-status-inactive,
.doctor-status-rejected {
    border-color: #fecaca;

    background: var(--doctor-danger-bg);
    color: #991b1b;
}


.doctor-status-no_show,
.doctor-status-no-show {
    border-color: #ddd6fe;

    background: #ede9fe;
    color: #5b21b6;
}


.doctor-status-draft {
    border-color: #cbd5e1;

    background: #f1f5f9;
    color: #475569;
}


.doctor-status-published {
    border-color: #bae6fd;

    background: var(--doctor-info-bg);
    color: #075985;
}


/* ==========================================================================
   11. ALERTS
========================================================================== */

.doctor-alert {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 16px 18px;

    margin-bottom: 20px;

    border: 1px solid transparent;

    border-radius: var(--doctor-radius);

    font-size: 13px;

    overflow-wrap: anywhere;
}


.doctor-alert > i {
    flex: 0 0 auto;

    margin-top: 3px;

    font-size: 17px;
}


.doctor-alert strong {
    display: block;

    margin-bottom: 4px;
}


.doctor-alert p {
    margin: 0 0 8px;
}


.doctor-alert a {
    font-weight: 700;
    text-decoration: underline;
}


.doctor-alert-success {
    border-color: #bbf7d0;

    background: #f0fdf4;
    color: #166534;
}


.doctor-alert-danger {
    border-color: #fecaca;

    background: #fef2f2;
    color: #991b1b;
}


.doctor-alert-warning {
    border-color: #fde68a;

    background: var(--doctor-warning-bg);
    color: #92400e;
}


.doctor-alert-warning a {
    color: #92400e;
}


.doctor-alert-warning a:hover {
    color: #78350f;
}


.doctor-alert-info {
    border-color: #bae6fd;

    background: #f0f9ff;
    color: #075985;
}


/* ==========================================================================
   12. BUTTONS
========================================================================== */

.doctor-btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 17px;

    border: 1px solid transparent;

    border-radius: 9px;

    background: var(--doctor-primary);

    color: var(--doctor-white) !important;

    font-size: 13px;
    font-weight: 750;

    text-align: center;

    cursor: pointer;

    transition:
        background var(--doctor-transition),
        border-color var(--doctor-transition),
        transform var(--doctor-transition);
}


.doctor-btn:hover {
    background: var(--doctor-primary-hover);
    color: var(--doctor-white) !important;
}


.doctor-btn:active {
    transform: scale(0.98);
}


.doctor-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


.doctor-btn-primary {
    background: var(--doctor-primary);
}


.doctor-btn-secondary {
    border-color: var(--doctor-border);

    background: var(--doctor-white);
    color: var(--doctor-text) !important;
}


.doctor-btn-secondary:hover {
    border-color: #cbd5e1;

    background: #f1f5f9;

    color: var(--doctor-text) !important;
}


.doctor-btn-danger {
    background: #dc2626;
}


.doctor-btn-danger:hover {
    background: #b91c1c;
}


.doctor-btn-warning {
    background: #d97706;
}


.doctor-btn-warning:hover {
    background: #b45309;
}


.doctor-btn-sm {
    min-height: 34px;

    padding: 7px 11px;

    border-radius: 7px;

    font-size: 11px;
}


.doctor-btn-block {
    width: 100%;
}


/* ==========================================================================
   13. FORMS
========================================================================== */

.doctor-form,
.doctor-auth-form {
    width: 100%;
}


.doctor-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.doctor-form-group {
    min-width: 0;

    margin-bottom: 19px;
}


.doctor-form-group.full-width {
    grid-column: 1 / -1;
}


.doctor-form-group label,
.doctor-form-label {
    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 12px;
    font-weight: 750;
}


.doctor-form-label {
    margin-bottom: 9px;
    font-size: 13px;
}


.doctor-form-label > span,
.doctor-form-group label .required {
    color: var(--doctor-danger);
}


.doctor-form-control {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 45px;

    padding: 11px 13px;

    border: 1px solid #cbd5e1;

    border-radius: 9px;

    outline: none;

    background: var(--doctor-white);

    color: var(--doctor-text);

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color var(--doctor-transition),
        box-shadow var(--doctor-transition),
        background-color var(--doctor-transition);
}


.doctor-form-control::placeholder {
    color: #94a3b8;
}


.doctor-form-control:hover {
    border-color: #86b99a;
}


.doctor-form-control:focus {
    border-color: var(--doctor-primary);

    box-shadow:
        0 0 0 3px rgba(21, 128, 61, 0.1);
}


.doctor-form-control:disabled,
.doctor-form-control[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}


.doctor-form-control[aria-invalid="true"] {
    border-color: #dc2626;
    background: #fffafa;
}


textarea.doctor-form-control {
    min-height: 130px;
    resize: vertical;
}


select.doctor-form-control {
    cursor: pointer;
}


.doctor-form-help {
    display: block;

    margin-top: 6px;

    color: var(--doctor-text-muted);

    font-size: 11px;
}


.doctor-form-group small {
    display: block;

    margin-top: 7px;

    color: var(--doctor-text-muted);

    font-size: 12px;
    line-height: 1.7;
}


.doctor-form-actions {
    display: flex;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}


.doctor-checkbox-group {
    display: flex;
    align-items: flex-start;

    gap: 9px;
}


.doctor-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;

    margin-top: 3px;

    accent-color: var(--doctor-primary);
}


/* Password */

.doctor-password-wrapper {
    position: relative;
}


.doctor-password-wrapper .doctor-form-control {
    padding-right: 46px;
}


.doctor-password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px;

    border: 0;

    background: transparent;

    color: #64748b;

    cursor: pointer;

    transform: translateY(-50%);
}


.doctor-password-toggle:hover {
    color: var(--doctor-primary);
}


/* ==========================================================================
   14. TABLES
========================================================================== */

.doctor-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--doctor-border);

    border-radius: 10px;

    background: var(--doctor-white);

    -webkit-overflow-scrolling: touch;
}


.doctor-table {
    width: 100%;
    min-width: 650px;

    border-collapse: collapse;

    text-align: left;
}


.doctor-table th {
    padding: 14px 16px;

    border-bottom: 1px solid var(--doctor-border);

    background: #f8fafc;

    color: #475569;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.3px;

    white-space: nowrap;
}


.doctor-table td {
    padding: 15px 16px;

    border-bottom: 1px solid #f1f5f9;

    color: #334155;

    font-size: 12px;

    vertical-align: middle;
}


.doctor-table tbody tr:last-child td {
    border-bottom: 0;
}


.doctor-table tbody tr:hover {
    background: #f8fafc;
}


.doctor-table-actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px;
}


.doctor-table-primary {
    color: var(--doctor-text);
    font-weight: 750;
}


.doctor-table-secondary {
    display: block;

    margin-top: 3px;

    color: var(--doctor-text-muted);

    font-size: 11px;
}


/* ==========================================================================
   15. SEARCH AND FILTERS
========================================================================== */

.doctor-filter-bar {
    display: flex;
    align-items: flex-end;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 20px;

    padding: 17px;

    border: 1px solid var(--doctor-border);

    border-radius: 11px;

    background: var(--doctor-white);
}


.doctor-filter-group {
    min-width: 150px;
    flex: 1;
}


.doctor-filter-group label {
    display: block;

    margin-bottom: 6px;

    color: #475569;

    font-size: 11px;
    font-weight: 750;
}


.doctor-search-box {
    position: relative;

    min-width: 200px;
    flex: 2;
}


.doctor-search-box > i {
    position: absolute;

    top: 50%;
    left: 13px;

    color: #94a3b8;

    transform: translateY(-50%);
}


.doctor-search-box .doctor-form-control {
    padding-left: 38px;
}


/* ==========================================================================
   16. EMPTY STATES
========================================================================== */

.doctor-empty-state {
    padding: 45px 20px;

    text-align: center;
}


.doctor-empty-state-icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 17px;

    border-radius: 50%;

    background: var(--doctor-primary-light);
    color: var(--doctor-primary);

    font-size: 25px;
}


.doctor-empty-state h3 {
    margin-bottom: 8px;
    font-size: 17px;
}


.doctor-empty-state p {
    max-width: 430px;

    margin: 0 auto 18px;

    color: var(--doctor-text-muted);

    font-size: 13px;
}


/* ==========================================================================
   17. INFORMATION GRIDS
========================================================================== */

.doctor-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.doctor-info-item {
    padding: 15px;

    border: 1px solid var(--doctor-border);

    border-radius: 10px;

    background: #fcfdfd;
}


.doctor-info-label {
    display: block;

    margin-bottom: 6px;

    color: var(--doctor-text-muted);

    font-size: 11px;
    font-weight: 650;
}


.doctor-info-value {
    display: block;

    color: var(--doctor-text);

    font-size: 13px;
    font-weight: 750;

    overflow-wrap: anywhere;
}


/* ==========================================================================
   18. PAGINATION
========================================================================== */

.doctor-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 24px;
}


.doctor-pagination a,
.doctor-pagination span {
    min-width: 36px;
    min-height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    border: 1px solid var(--doctor-border);

    border-radius: 8px;

    background: var(--doctor-white);

    color: #475569;

    font-size: 12px;
    font-weight: 700;
}


.doctor-pagination a:hover,
.doctor-pagination .active {
    border-color: var(--doctor-primary);

    background: var(--doctor-primary);

    color: var(--doctor-white);
}


/* ==========================================================================
   19. FOOTER
========================================================================== */

.doctor-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px;

    padding: 18px 28px;

    border-top: 1px solid var(--doctor-border);

    background: var(--doctor-white);

    color: var(--doctor-text-muted);

    font-size: 11px;
}


.doctor-page-footer p {
    margin: 0;
}


.doctor-page-footer strong {
    color: var(--doctor-primary-dark);
}


/* ==========================================================================
   20. LOGIN / SIGNUP AUTH PAGES
========================================================================== */

.doctor-auth-body,
.doctor-body.doctor-auth-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.12),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #f0fdf4 0%,
            #f8fafc 50%,
            #ecfdf5 100%
        );
}


.doctor-auth-body {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 16px;
}


.doctor-body.doctor-auth-page {
    margin: 0;

    padding: 45px 20px;

    color: var(--doctor-text);
}


.doctor-auth-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


.doctor-auth-brand {
    margin-bottom: 30px;

    text-align: center;
}


.doctor-auth-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
}


.doctor-auth-logo,
.doctor-auth-brand img {
    width: 80px;
    height: 80px;

    display: block;

    object-fit: contain;

    padding: 5px;

    border: 1px solid #dcfce7;

    border-radius: 16px;

    background: var(--doctor-white);

    box-shadow: var(--doctor-shadow);
}


.doctor-auth-brand h1 {
    margin: 0 0 8px;

    color: var(--doctor-primary-dark);

    font-size: clamp(24px, 4vw, 34px);

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -0.6px;
}


.doctor-auth-brand p {
    max-width: 600px;

    margin: 0 auto;

    color: var(--doctor-text-muted);

    font-size: 13px;

    line-height: 1.8;
}


.doctor-auth-card {
    width: 100%;

    padding: 32px;

    border: 1px solid var(--doctor-border);

    border-radius: var(--doctor-radius-lg);

    background: var(--doctor-white);

    box-shadow:
        0 20px 55px rgba(20, 83, 45, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.03);
}


.doctor-auth-card h2 {
    margin-bottom: 7px;

    font-size: 22px;
    font-weight: 850;
}


.doctor-auth-description {
    margin-bottom: 25px;

    color: var(--doctor-text-muted);

    font-size: 13px;
}


/* Signup section headings */

.doctor-form-section-heading {
    display: flex;
    align-items: center;

    gap: 13px;

    margin: 35px 0 23px;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--doctor-border);
}


.doctor-form-section-heading:first-of-type {
    margin-top: 0;
}


.doctor-form-section-heading > i {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: var(--doctor-primary-light);
    color: var(--doctor-primary-dark);

    font-size: 18px;
}


.doctor-form-section-heading h2 {
    margin: 0;

    color: var(--doctor-primary-dark);

    font-size: 19px;
    font-weight: 750;
}


/* Auth buttons */

.doctor-auth-card .doctor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 50px;

    padding: 13px 20px;

    border: 1px solid transparent;

    border-radius: 11px;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.5;

    text-align: center;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.doctor-auth-card .doctor-button-primary {
    border-color: var(--doctor-primary);

    background:
        linear-gradient(
            135deg,
            var(--doctor-primary),
            var(--doctor-primary-dark)
        );

    color: var(--doctor-white);

    box-shadow:
        0 7px 18px rgba(21, 128, 61, 0.16);
}


.doctor-auth-card .doctor-button-primary:hover {
    border-color: var(--doctor-primary-dark);

    background:
        linear-gradient(
            135deg,
            var(--doctor-primary-hover),
            var(--doctor-primary-dark)
        );

    color: var(--doctor-white);

    box-shadow:
        0 10px 24px rgba(21, 128, 61, 0.22);

    transform: translateY(-1px);
}


.doctor-auth-card .doctor-button-block {
    display: flex;
    width: 100%;
}


/* Auth alerts */

.doctor-auth-card .doctor-alert {
    margin-bottom: 25px;
}


.doctor-auth-card .doctor-alert-danger strong {
    display: block;

    margin-bottom: 5px;
}


.doctor-auth-card .doctor-alert-danger ul {
    margin: 7px 0 0;
    padding-left: 20px;
}


.doctor-auth-card .doctor-alert-danger li + li {
    margin-top: 5px;
}


/* Approval notice */

.doctor-auth-notice {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin: 30px 0 25px;

    padding: 18px;

    border: 1px solid #bbf7d0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #f0fdf4,
            #f8fffa
        );
}


.doctor-auth-notice > i {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: var(--doctor-primary-light);
    color: var(--doctor-primary-dark);

    font-size: 18px;
}


.doctor-auth-notice p {
    margin: 0;

    color: #365344;

    font-size: 13px;
    line-height: 1.9;
}


/* Auth footer */

.doctor-auth-footer {
    margin-top: 23px;

    padding-top: 22px;

    border-top: 1px solid var(--doctor-border);

    color: var(--doctor-text-muted);

    font-size: 12px;

    text-align: center;
}


.doctor-auth-footer p {
    margin: 0 0 18px;
}


.doctor-auth-footer a {
    color: var(--doctor-primary-dark);
    font-weight: 700;
}


.doctor-auth-footer a:hover {
    color: var(--doctor-primary);
    text-decoration: underline;
}


.doctor-auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 13px;
}


.doctor-auth-copyright {
    margin: 25px 0 0;

    color: var(--doctor-text-muted);

    font-size: 11px;

    line-height: 1.8;

    text-align: center;
}


/* ==========================================================================
   21. UTILITIES
========================================================================== */

.doctor-text-muted {
    color: var(--doctor-text-muted) !important;
}


.doctor-text-success {
    color: var(--doctor-success) !important;
}


.doctor-text-danger {
    color: var(--doctor-danger) !important;
}


.doctor-text-warning {
    color: var(--doctor-warning) !important;
}


.doctor-text-right {
    text-align: right;
}


.doctor-text-center {
    text-align: center;
}


.doctor-mb-0 {
    margin-bottom: 0 !important;
}


.doctor-mt-20 {
    margin-top: 20px !important;
}


.doctor-mb-20 {
    margin-bottom: 20px !important;
}


.doctor-flex {
    display: flex;
}


.doctor-flex-between {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.doctor-flex-wrap {
    flex-wrap: wrap;
}


.doctor-gap-10 {
    gap: 10px;
}


.doctor-w-100 {
    width: 100%;
}


.doctor-hidden {
    display: none !important;
}


/* ==========================================================================
   22. RESPONSIVE - LARGE TABLETS
========================================================================== */

@media (max-width: 1200px) {

    :root {
        --doctor-sidebar-width: 240px;
    }

    .doctor-content {
        padding: 23px;
    }

    .doctor-topbar {
        padding-right: 23px;
        padding-left: 23px;
    }

    .doctor-stats-grid,
    .doctor-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   23. RESPONSIVE - SIDEBAR / TABLET
========================================================================== */

@media (max-width: 1024px) {

    .doctor-sidebar {
        width: min(290px, 85vw);

        transform: translateX(-105%);

        transition:
            transform var(--doctor-transition);
    }


    .doctor-sidebar.is-open {
        transform: translateX(0);
    }


    .doctor-sidebar-close {
        display: inline-flex;
    }


    .doctor-main-wrapper {
        margin-left: 0;
    }


    .doctor-menu-toggle {
        display: inline-flex;
    }


    .doctor-topbar {
        min-height: 70px;

        padding: 12px 20px;
    }


    .doctor-main {
        padding: 22px 20px;
    }


    .doctor-content {
        padding: 22px 20px;
    }


    .doctor-page-footer {
        padding-right: 20px;
        padding-left: 20px;
    }


    .doctor-dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   24. RESPONSIVE - MOBILE
========================================================================== */

@media (max-width: 768px) {

    .doctor-main {
        padding: 20px 15px;
    }


    .doctor-page-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 20px;
    }


    .doctor-page-header h1 {
        font-size: 23px;
    }


    .doctor-page-header p {
        font-size: 14px;
    }


    .doctor-status-badge {
        align-self: flex-start;
    }


    .doctor-dashboard-stats,
    .doctor-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .doctor-stat-card {
        min-height: 95px;

        padding: 15px;

        gap: 11px;
    }


    .doctor-stat-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;

        font-size: 16px;
    }


    .doctor-stat-card strong {
        font-size: 21px;
    }


    .doctor-stat-card span {
        font-size: 11px;
    }


    .doctor-card {
        margin-bottom: 17px;
    }


    .doctor-card-header {
        padding: 18px;
    }


    .doctor-quick-actions a {
        padding: 15px 18px;
    }


    .doctor-quick-actions a:hover {
        padding-left: 21px;
    }


    .doctor-profile-summary {
        padding: 22px 18px;
    }


    .doctor-form-grid,
    .doctor-info-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }


    .doctor-form-group.full-width {
        grid-column: auto;
    }


    .doctor-filter-bar {
        align-items: stretch;

        flex-direction: column;

        padding: 13px;
    }


    .doctor-filter-group,
    .doctor-search-box {
        width: 100%;
        min-width: 0;
    }


    .doctor-form-actions {
        flex-direction: column;
    }


    .doctor-form-actions .doctor-btn {
        width: 100%;
    }


    .doctor-profile-header {
        align-items: flex-start;

        gap: 13px;
    }


    .doctor-profile-header .doctor-profile-avatar {
        width: 66px;
        height: 66px;
        flex-basis: 66px;

        font-size: 22px;
    }


    .doctor-auth-card {
        padding: 26px 20px;
    }


    .doctor-auth-brand h1 {
        font-size: 27px;
    }


    .doctor-table th,
    .doctor-table td {
        padding: 12px;
    }
}


/* ==========================================================================
   25. RESPONSIVE - SMALL MOBILE
========================================================================== */

@media (max-width: 640px) {

    :root {
        --doctor-topbar-height: 66px;
    }


    .doctor-topbar {
        min-height: 66px;

        gap: 10px;

        padding: 10px 13px;
    }


    .doctor-topbar-left {
        gap: 10px;
    }


    .doctor-menu-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;

        font-size: 15px;
    }


    .doctor-topbar-title {
        font-size: 16px;
    }


    .doctor-topbar-subtitle {
        max-width: 220px;
        font-size: 10px;
    }


    .doctor-topbar-reference {
        padding: 8px;
        font-size: 10px;
    }


    .doctor-topbar-reference > i {
        display: none;
    }


    .doctor-main {
        padding: 17px 13px;
    }


    .doctor-content {
        padding: 17px 13px;
    }


    .doctor-page-heading {
        gap: 12px;
        margin-bottom: 18px;
    }


    .doctor-page-heading h2 {
        font-size: 21px;
    }


    .doctor-page-heading p {
        font-size: 12px;
    }


    .doctor-card {
        padding: 0;
        border-radius: 11px;
    }


    .doctor-card-header h2,
    .doctor-card-header h3 {
        font-size: 15px;
    }


    .doctor-profile-avatar {
        width: 68px;
        height: 68px;
    }


    .doctor-page-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;

        padding: 15px 13px;
    }


    .doctor-auth-body {
        padding: 20px 12px;
    }


    .doctor-body.doctor-auth-page {
        padding: 18px 12px;
    }


    .doctor-auth-container {
        max-width: 100%;
    }


    .doctor-auth-card {
        padding: 24px 18px;

        border-radius: 17px;
    }


    .doctor-auth-brand {
        margin-bottom: 28px;
    }


    .doctor-auth-brand img,
    .doctor-auth-logo {
        width: 68px;
        height: 68px;

        border-radius: 16px;
    }


    .doctor-form-grid {
        grid-template-columns: minmax(0, 1fr);

        gap: 17px;
    }


    .doctor-form-section-heading {
        gap: 11px;

        margin: 27px 0 19px;

        padding-bottom: 13px;
    }


    .doctor-form-section-heading > i {
        width: 39px;
        height: 39px;

        border-radius: 11px;

        font-size: 16px;
    }


    .doctor-form-section-heading h2 {
        font-size: 17px;
    }


    .doctor-form-control {
        min-height: 49px;
        font-size: 16px;
    }


    .doctor-auth-notice {
        gap: 11px;

        padding: 14px;
    }


    .doctor-auth-notice > i {
        width: 35px;
        height: 35px;

        font-size: 16px;
    }


    .doctor-auth-notice p {
        font-size: 12px;
    }


    .doctor-auth-card .doctor-button {
        width: 100%;

        min-height: 50px;

        padding: 13px 15px;

        font-size: 13px;
    }


    .doctor-auth-footer {
        margin-top: 25px;
        padding-top: 22px;
    }


    .doctor-auth-copyright {
        padding: 0 10px;

        font-size: 11px;
    }
}


/* ==========================================================================
   26. EXTRA SMALL DEVICES
========================================================================== */

@media (max-width: 480px) {

    .doctor-main {
        padding: 15px 10px;
    }


    .doctor-dashboard-stats,
    .doctor-stats-grid {
        grid-template-columns: 1fr;
    }


    .doctor-stat-card {
        min-height: 82px;
    }


    .doctor-alert {
        padding: 14px;

        gap: 11px;
    }


    .doctor-card-header {
        flex-direction: column;

        gap: 10px;
    }


    .doctor-card-header > a {
        align-self: flex-start;
    }


    .doctor-profile-avatar {
        width: 68px;
        height: 68px;
    }
}


/* ==========================================================================
   27. VERY SMALL DEVICES
========================================================================== */

@media (max-width: 360px) {

    .doctor-topbar-reference {
        display: none;
    }


    .doctor-auth-card {
        padding: 20px 15px;
    }


    .doctor-auth-brand h1 {
        font-size: 24px;
    }


    .doctor-form-section-heading h2 {
        font-size: 15px;
    }


    .doctor-auth-card .doctor-button {
        gap: 7px;

        font-size: 12px;
    }
}


/* ==========================================================================
   28. ACCESSIBILITY / REDUCED MOTION
========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}



/* ==========================================================================
   DOCTOR PROFILE PAGE
   ========================================================================== */

/* --------------------------------------------------------------------------
   Profile Summary
   -------------------------------------------------------------------------- */

.doctor-profile-summary {
    background: var(--doctor-surface, #ffffff);
    border: 1px solid var(--doctor-border, #e5e7eb);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.doctor-profile-details {
    display: flex;
    align-items: center;
    gap: 18px;
}

.doctor-profile-avatar {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 101, 52, 0.1);
    color: var(--doctor-primary, #166534);
    font-size: 32px;
}

.doctor-profile-details h2 {
    margin: 0 0 6px;
    color: var(--doctor-text, #111827);
    font-size: 1.4rem;
    font-weight: 700;
}

.doctor-profile-details p {
    margin: 0 0 10px;
    color: var(--doctor-text-muted, #6b7280);
}


/* --------------------------------------------------------------------------
   Profile Page Grid
   -------------------------------------------------------------------------- */

.doctor-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}


/* --------------------------------------------------------------------------
   Profile Card
   -------------------------------------------------------------------------- */

.doctor-card {
    background: var(--doctor-surface, #ffffff);
    border: 1px solid var(--doctor-border, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.doctor-card-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--doctor-border, #e5e7eb);
}

.doctor-card-header h2 {
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--doctor-text, #111827);
    font-size: 1.08rem;
}

.doctor-card-header h2 i {
    color: var(--doctor-primary, #166534);
}

.doctor-card-header p {
    margin: 0;
    color: var(--doctor-text-muted, #6b7280);
    font-size: 0.9rem;
}


/* --------------------------------------------------------------------------
   Profile Form
   -------------------------------------------------------------------------- */

.doctor-card .doctor-auth-form {
    padding: 22px;
}

.doctor-form-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--doctor-border, #e5e7eb);
    color: var(--doctor-primary, #166534);
    font-weight: 700;
    font-size: 0.95rem;
}

.doctor-form-section-heading:not(:first-of-type) {
    margin-top: 28px;
}

.doctor-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.doctor-form-group {
    min-width: 0;
}

.doctor-form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--doctor-text, #111827);
    font-size: 0.9rem;
    font-weight: 600;
}

.doctor-form-label span {
    color: #dc2626;
}

.doctor-form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--doctor-border, #d1d5db);
    border-radius: 9px;
    background: #ffffff;
    color: var(--doctor-text, #111827);
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.doctor-form-control:focus {
    border-color: var(--doctor-primary, #166534);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

.doctor-form-control[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.doctor-form-group small {
    display: block;
    margin-top: 6px;
    color: var(--doctor-text-muted, #6b7280);
    font-size: 0.78rem;
    line-height: 1.5;
}

.doctor-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--doctor-border, #e5e7eb);
}


/* --------------------------------------------------------------------------
   Account Information List
   -------------------------------------------------------------------------- */

.doctor-profile-info-list {
    padding: 8px 22px;
}

.doctor-profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--doctor-border, #eef2f7);
}

.doctor-profile-info-item:last-child {
    border-bottom: 0;
}

.doctor-profile-info-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 101, 52, 0.08);
    color: var(--doctor-primary, #166534);
    font-size: 0.95rem;
}

.doctor-profile-info-item > div:last-child {
    min-width: 0;
    flex: 1;
}

.doctor-profile-info-item span:not(.doctor-status-badge) {
    display: block;
    margin-bottom: 4px;
    color: var(--doctor-text-muted, #6b7280);
    font-size: 0.78rem;
}

.doctor-profile-info-item strong {
    display: block;
    color: var(--doctor-text, #111827);
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}


/* --------------------------------------------------------------------------
   Profile Security
   -------------------------------------------------------------------------- */

.doctor-profile-security {
    margin: 12px 22px 22px;
    padding: 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--doctor-border, #e5e7eb);
}

.doctor-profile-security h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--doctor-text, #111827);
    font-size: 0.95rem;
}

.doctor-profile-security h3 i {
    color: var(--doctor-primary, #166534);
}

.doctor-profile-security p {
    margin: 0 0 15px;
    color: var(--doctor-text-muted, #6b7280);
    font-size: 0.84rem;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   Status Badges
   -------------------------------------------------------------------------- */

.doctor-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.doctor-status-success {
    background: #dcfce7;
    color: #166534;
}

.doctor-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.doctor-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.doctor-status-secondary {
    background: #e5e7eb;
    color: #374151;
}


/* --------------------------------------------------------------------------
   Profile Buttons
   -------------------------------------------------------------------------- */

.doctor-profile-security .doctor-button,
.doctor-form-actions .doctor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.doctor-button-secondary {
    background: #ffffff;
    color: var(--doctor-primary, #166534);
    border: 1px solid var(--doctor-primary, #166534);
}

.doctor-button-secondary:hover {
    background: rgba(22, 101, 52, 0.06);
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {

    .doctor-dashboard-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .doctor-profile-summary {
        padding: 18px;
    }

    .doctor-profile-details {
        align-items: flex-start;
    }

    .doctor-profile-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 25px;
    }

    .doctor-profile-details h2 {
        font-size: 1.15rem;
    }

    .doctor-form-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card .doctor-auth-form,
    .doctor-card-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .doctor-profile-info-list {
        padding-left: 18px;
        padding-right: 18px;
    }

    .doctor-profile-security {
        margin-left: 18px;
        margin-right: 18px;
    }
}


@media (max-width: 480px) {

    .doctor-profile-details {
        flex-direction: column;
    }

    .doctor-profile-avatar {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .doctor-form-actions {
        display: block;
    }

    .doctor-form-actions .doctor-button {
        width: 100%;
    }

    .doctor-profile-security .doctor-button {
        width: 100%;
    }
}

/* ==========================================================================
   DASHBOARD STATISTICS
   ========================================================================== */

.doctor-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.doctor-stat-card {
    background: var(--doctor-white);
    border: 1px solid var(--doctor-border);
    border-radius: var(--doctor-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--doctor-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}

.doctor-stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 135, 84, 0.10);
    color: var(--doctor-primary);
    font-size: 21px;
}

.doctor-stat-number {
    color: var(--doctor-text);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.doctor-stat-label {
    margin-top: 4px;
    color: var(--doctor-muted);
    font-size: 13px;
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.doctor-card {
    background: var(--doctor-white);
    border: 1px solid var(--doctor-border);
    border-radius: var(--doctor-radius);
    box-shadow: var(--doctor-shadow);
    margin-bottom: 25px;
    overflow: hidden;
}

.doctor-card-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--doctor-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.doctor-card-header h2 {
    margin: 0 0 5px;
    color: var(--doctor-text);
    font-size: 18px;
    font-weight: 700;
}

.doctor-card-header h2 i {
    color: var(--doctor-primary);
    margin-right: 7px;
}

.doctor-card-header p {
    margin: 0;
    color: var(--doctor-muted);
    font-size: 13px;
}


/* ==========================================================================
   FORM GRID / FILTERS
   ========================================================================== */

.doctor-form-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 250px) auto;
    align-items: end;
    gap: 15px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--doctor-border);
}

.doctor-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.doctor-form-label {
    color: var(--doctor-text);
    font-size: 13px;
    font-weight: 600;
}

.doctor-form-control {
    width: 100%;
    min-height: 43px;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: var(--doctor-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.doctor-form-control:focus {
    border-color: var(--doctor-primary);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.10);
}

textarea.doctor-form-control {
    min-height: 120px;
    resize: vertical;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.doctor-button {
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.doctor-button-primary {
    background: var(--doctor-primary);
    color: #fff;
}

.doctor-button-primary:hover {
    background: var(--doctor-primary-dark);
    color: #fff;
    text-decoration: none;
}

.doctor-button i {
    font-size: 12px;
}


/* ==========================================================================
   TABLE
   ========================================================================== */

.doctor-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.doctor-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    font-size: 13px;
}

.doctor-table thead {
    background: #f8fafc;
}

.doctor-table th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--doctor-border);
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.doctor-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--doctor-border);
    color: var(--doctor-text);
    vertical-align: middle;
}

.doctor-table tbody tr {
    transition: background 0.15s ease;
}

.doctor-table tbody tr:hover {
    background: #f9fafb;
}

.doctor-table tbody tr:last-child td {
    border-bottom: 0;
}

.doctor-table td strong {
    font-weight: 600;
}

.doctor-table td small {
    color: var(--doctor-muted);
    font-size: 11px;
}


/* ==========================================================================
   STATUS BADGES
   ========================================================================== */

.doctor-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    padding: 5px 9px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.doctor-status-success {
    background: rgba(25, 135, 84, 0.10);
    color: #157347;
}

.doctor-status-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.doctor-status-danger {
    background: rgba(220, 53, 69, 0.10);
    color: #b42333;
}

.doctor-status-info {
    background: rgba(13, 110, 253, 0.10);
    color: #0a58ca;
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.doctor-empty-state {
    padding: 60px 25px;
    text-align: center;
}

.doctor-empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.09);
    color: var(--doctor-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.doctor-empty-state h3 {
    margin: 0 0 7px;
    color: var(--doctor-text);
    font-size: 18px;
}

.doctor-empty-state p {
    margin: 0;
    color: var(--doctor-muted);
    font-size: 14px;
}


/* ==========================================================================
   ALERTS
   ========================================================================== */

.doctor-alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.doctor-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.doctor-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.doctor-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}


/* ==========================================================================
   CONSULTATION DETAIL / FORM
   ========================================================================== */

.doctor-detail-section {
    padding: 22px 24px;
    border-bottom: 1px solid var(--doctor-border);
}

.doctor-detail-section:last-child {
    border-bottom: 0;
}

.doctor-detail-section h3 {
    margin: 0 0 18px;
    color: var(--doctor-text);
    font-size: 16px;
}

.doctor-detail-section h3 i {
    color: var(--doctor-primary);
    margin-right: 7px;
}

.doctor-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.doctor-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.doctor-form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


/* ==========================================================================
   INFO GRID
   ========================================================================== */

.doctor-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.doctor-info-item {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--doctor-border);
    border-radius: 8px;
}

.doctor-info-label {
    margin-bottom: 5px;
    color: var(--doctor-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.doctor-info-value {
    color: var(--doctor-text);
    font-size: 14px;
    font-weight: 600;
}


/* ==========================================================================
   PAGINATION
   ========================================================================== */

.doctor-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 20px;
}

.doctor-pagination a,
.doctor-pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--doctor-border);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--doctor-text);
    text-decoration: none;
    font-size: 13px;
}

.doctor-pagination a:hover {
    border-color: var(--doctor-primary);
    color: var(--doctor-primary);
}

.doctor-pagination .active {
    border-color: var(--doctor-primary);
    background: var(--doctor-primary);
    color: #fff;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {

    .doctor-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctor-form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 900px) {

    .doctor-main {
        padding: 25px 18px;
    }

    .doctor-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .doctor-form-grid .doctor-form-group:last-child {
        grid-column: 1 / -1;
    }

    .doctor-form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 700px) {

    .doctor-main {
        padding: 20px 14px;
    }

    .doctor-page-header {
        align-items: flex-start;
    }

    .doctor-page-header h1 {
        font-size: 23px;
    }

    .doctor-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .doctor-form-grid,
    .doctor-form-grid-2,
    .doctor-form-grid-3,
    .doctor-form-grid-4,
    .doctor-info-grid {
        grid-template-columns: 1fr;
    }

    .doctor-form-grid .doctor-form-group:last-child {
        grid-column: auto;
    }

    .doctor-card-header {
        padding: 18px;
    }

    .doctor-detail-section {
        padding: 18px;
    }

    .doctor-table {
        min-width: 950px;
    }

}


@media (max-width: 480px) {

    .doctor-main {
        padding: 15px 10px;
    }

    .doctor-page-header h1 {
        font-size: 20px;
    }

    .doctor-page-header p {
        font-size: 13px;
    }

    .doctor-stat-card {
        padding: 16px;
    }

    .doctor-stat-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 18px;
    }

    .doctor-stat-number {
        font-size: 21px;
    }

    .doctor-card-header h2 {
        font-size: 16px;
    }

}

@media (max-width: 1024px) {

    .doctor-main-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .doctor-main {
        width: 100%;
    }
}

a.doctor-button.doctor-button-primary,
a.doctor-button.doctor-button-primary:link,
a.doctor-button.doctor-button-primary:visited,
a.doctor-button.doctor-button-primary:hover,
a.doctor-button.doctor-button-primary:focus,
a.doctor-button.doctor-button-primary:active,
a.doctor-button.doctor-button-primary i {
    color: #ffffff !important;
}