/* Base Styles */
:root {
    /* Primary Colors */
    --primary: #003b95;
    --primary-light: #1a52b3;
    --primary-dark: #002968;
    --primary-hover: #00469e;

    /* Secondary Colors */
    --secondary: #4a5568;
    --secondary-light: #718096;
    --secondary-dark: #2d3748;

    /* Status Colors */
    --success: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;

    /* Neutrals */
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Banner */
    --banner-bg: var(--primary);
    --banner-text: #ffffff;
    --banner-hover: var(--primary-hover);

    /* Typography */
    --heading-color: var(--primary);
    --text-xs: 0.6875rem;   /* 11px */
    --text-sm: 0.8125rem;   /* 13px */
    --text-base: 0.9375rem; /* 15px */
    --text-lg: 1.0625rem;   /* 17px */
    --text-xl: 1.1875rem;   /* 19px */
    --text-2xl: 1.375rem;   /* 22px */
    --h1-size: 1.5rem;      /* 24px */
    --h2-size: 1.25rem;     /* 20px */
    --h3-size: 1.0625rem;   /* 17px */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text);
    font-size: var(--text-base);
    line-height: 1.5;
}

/* Layout */
.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Banner */
.top-banner {
    background: var(--banner-bg);
    color: var(--banner-text);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.banner-logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--banner-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.banner-logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.banner-logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--banner-text);
    white-space: nowrap;
}

.banner-nav {
    display: flex;
    gap: 0.5rem;
}

.banner-nav-item {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.banner-nav-item:hover {
    background: var(--banner-hover);
    color: white;
}

.banner-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: var(--text-sm);
}

/* Icon Styling */
.icon {
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    padding: 2rem;
    flex: 1;
}

/* Typography */
h1 {
    font-size: var(--h1-size);
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

h2 {
    font-size: var(--h2-size);
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

h3 {
    font-size: var(--h3-size);
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
    border-color: #cbd5e1;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 59, 149, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    box-shadow: 0 6px 12px rgba(0, 59, 149, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger-dark);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--surface), var(--background));
}

.card-header h2 {
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.data-table th,
.data-table td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #e2e8f0;
    color: var(--text);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    font-size: var(--text-sm);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background-color 0.15s;
}

.data-table tbody tr:hover {
    background: var(--background);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-draft { background: #f1f5f9; color: #475569; }
.status-awaitinginput { background: #fef3c7; color: #92400e; }
.status-inputcomplete { background: #dbeafe; color: #1e40af; }
.status-generated { background: #d1fae5; color: #065f46; }
.status-published { background: #c7d2fe; color: #3730a3; }
.status-active { background: #d1fae5; color: #065f46; }
.status-inactive { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-completed { background: #d1fae5; color: #065f46; }

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: var(--text-sm);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 59, 149, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Form Label Row for select all links */
.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

/* Action Links (for select all, deselect all, etc.) */
.action-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    margin-left: auto;
}

.action-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.action-link:active {
    opacity: 0.8;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal {
    background: var(--surface);
    border-radius: 0.75rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s;
}

.modal-lg {
    max-width: 700px;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
}

.stat-link {
    font-size: var(--text-sm);
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.stat-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Charts Section */
.charts-section {
    margin: 2rem 0;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    min-height: 400px;
}

.recent-section {
    margin-top: 2rem;
}

.recent-section h2 {
    margin-bottom: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Access Token */
.access-token {
    font-size: 0.75rem;
    background: var(--background);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

/* Action Bar */
.action-bar {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Public Pages */
.public-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.public-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.welcome-message {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Calendar */
.calendar-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calendar-legend {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
}

.legend-color.available {
    background: white;
}

.legend-color.unavailable {
    background: #fee2e2;
}

.calendar-month {
    flex: 1;
    min-width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
}

.calendar-month h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}

.calendar-day:hover:not(:disabled) {
    border-color: var(--primary);
}

.calendar-day.unavailable {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.calendar-day.out-of-range {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.empty {
    border: none;
    cursor: default;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

/* Rota Grid View */
.rota-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rota-grid {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.rota-grid table {
    border-collapse: collapse;
    min-width: 100%;
}

.rota-grid th,
.rota-grid td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border);
    min-width: 40px;
    font-size: 0.75rem;
}

.rota-grid th {
    background: var(--background);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.rota-grid .doctor-name {
    text-align: left;
    font-weight: 500;
    min-width: 150px;
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 1;
}

.rota-grid .weekend {
    background: #f1f5f9;
}

.shift-ld { background: #dbeafe; color: #1e40af; font-weight: 600; }
.shift-n { background: #1e293b; color: white; font-weight: 600; }
.shift-sd { background: #d1fae5; color: #065f46; }
.shift-z { background: #f8fafc; color: #94a3b8; }

/* Ensure shift colors override weekend background */
.weekend.shift-ld { background: #dbeafe; }
.weekend.shift-n { background: #1e293b; }
.weekend.shift-sd { background: #d1fae5; }
.weekend.shift-z { background: #f8fafc; }

/* Preferences Section */
.preferences-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.preferences-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.preferences-intro {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.preference-group {
    margin-bottom: 1.5rem;
}

.preference-group:last-child {
    margin-bottom: 0;
}

.preference-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.preference-help {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.radio-option:hover,
.checkbox-option:hover {
    background: var(--background);
}

.radio-option input,
.checkbox-option input {
    accent-color: var(--primary);
}

.weekend-preferences {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.weekend-column {
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 1rem;
}

.weekend-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.weekend-column .checkbox-option {
    padding: 0.375rem;
}

/* Responsive Design */
@media (max-width: 767px) {
    /* Banner stacks on mobile */
    .top-banner {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .banner-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .banner-nav {
        width: 100%;
        flex-direction: column;
        gap: 0.25rem;
    }

    .banner-nav-item {
        width: 100%;
        justify-content: flex-start;
        padding: 0.625rem 1rem;
    }

    .banner-logo-image {
        height: 36px;
    }

    .banner-logo-text {
        font-size: var(--text-lg);
    }

    .banner-right {
        width: 100%;
    }

    /* Content padding reduced on mobile */
    .content {
        padding: 1rem;
    }

    /* Tables scroll horizontally */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Single column layouts */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Page header stacks */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Rota grid compact */
    .rota-grid {
        font-size: var(--text-xs);
    }

    .rota-grid th,
    .rota-grid td {
        padding: 0.25rem;
        min-width: 30px;
    }

    /* Modal full width on mobile */
    .modal {
        max-width: 95%;
        margin: 1rem;
    }

    /* Stat cards adjust */
    .stat-value {
        font-size: 1.75rem;
    }

    /* Charts single column on mobile */
    .chart-row {
        grid-template-columns: 1fr;
    }

    .chart-container {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .weekend-preferences {
        grid-template-columns: 1fr;
    }

    .calendar-month {
        min-width: 100%;
    }
}

@media (min-width: 768px) {
    .content {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .banner-nav {
        gap: 1rem;
    }

    .content {
        padding: 2.5rem;
    }
}

/* ============================================
   Authentication & User Management Styles
   ============================================ */

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #003b95 0%, #1a52b3 100%);
}

.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #003b95;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.login-header p {
    color: #6b7280;
    font-size: 0.875rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: #003b95;
    text-decoration: none;
    font-size: 0.875rem;
}

.login-footer a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

/* User Menu in Header */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    font-weight: 500;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

.role-superadmin {
    background-color: #e2e8f0;
    color: #334155;
}

.role-admin {
    background-color: #003b95;
    color: white;
}

.role-doctor {
    background-color: #10b981;
    color: white;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Alert Styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Ghost Button for Logout */
.btn-ghost {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Unauthorized Message */
.unauthorized {
    text-align: center;
    padding: 3rem;
}

.unauthorized h1 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.unauthorized p {
    color: #6b7280;
}

/* Form Text Helper */
.form-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Actions Column */
.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
