:root {
    color-scheme: light;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-soft: rgba(79, 70, 229, 0.12);
    --primary-glow: rgba(99, 102, 241, 0.22);
    --teal: #14b8a6;
    --teal-soft: rgba(20, 184, 166, 0.12);
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.14);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.14);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.14);
    --error: #ef4444;
    --error-soft: rgba(239, 68, 68, 0.12);
    --info: #0ea5e9;
    --info-soft: rgba(14, 165, 233, 0.12);

    --gray-0: #ffffff;
    --gray-25: #fcfcfe;
    --gray-50: #f8fafc;
    --gray-75: #f3f5fb;
    --gray-100: #eef2f7;
    --gray-150: #e7ebf3;
    --gray-200: #d7deea;
    --gray-300: #bcc6d8;
    --gray-400: #8d98ae;
    --gray-500: #657187;
    --gray-600: #495469;
    --gray-700: #31384b;
    --gray-800: #1f2434;
    --gray-900: #101522;
    --gray-950: #090d16;

    --bg-body: linear-gradient(180deg, #f7f8fc 0%, #f3f6fb 44%, #eef2f8 100%);
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-strong: #ffffff;
    --bg-muted: rgba(238, 242, 247, 0.9);
    --bg-header: rgba(255, 255, 255, 0.78);
    --bg-hero: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(20, 184, 166, 0.09) 48%, rgba(255, 255, 255, 0.95) 100%);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --text-inverse: #f8fbff;
    --border-color: rgba(188, 198, 216, 0.6);
    --border-strong: rgba(141, 152, 174, 0.42);

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.75rem;
    --space-3xl: 4rem;

    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

    --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 12px 40px rgba(99, 102, 241, 0.16);

    --radius-sm: 0.7rem;
    --radius-md: 0.95rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.6rem;
    --radius-pill: 999px;

    --content-width: 1320px;
    --ease: 180ms ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -1;
    filter: blur(32px);
}

body::before {
    width: 24rem;
    height: 24rem;
    top: -6rem;
    left: -5rem;
    background: rgba(79, 70, 229, 0.16);
}

body::after {
    width: 22rem;
    height: 22rem;
    right: -4rem;
    top: 10rem;
    background: rgba(20, 184, 166, 0.12);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease), background-color var(--ease), border-color var(--ease), opacity var(--ease), transform var(--ease), box-shadow var(--ease);
}

a:hover {
    color: var(--primary-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

main {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 1.25rem 0;
    backdrop-filter: blur(18px);
}

.main-nav {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0.85rem 1rem;
    background: var(--bg-header);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    border-radius: calc(var(--radius-xl) + 0.15rem);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.logo-wrap {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #7c3aed 58%, var(--teal));
    color: var(--text-inverse);
    font-size: 1.3rem;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.26);
}

.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.brand-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem;
    background: rgba(241, 245, 249, 0.82);
    border: 1px solid rgba(188, 198, 216, 0.4);
    border-radius: var(--radius-pill);
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.72rem 1rem;
    border-radius: var(--radius-pill);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-primary);
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(20, 184, 166, 0.12));
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem 0.4rem 0.42rem;
    border-radius: var(--radius-pill);
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(188, 198, 216, 0.45);
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.88rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(20, 184, 166, 0.18));
    color: var(--primary-dark);
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.page-shell,
.dashboard,
.schedule-container,
.staff-container,
.staff-form-container,
.staff-detail-container,
.gfs-container {
    display: grid;
    gap: 1.5rem;
}

.page-shell {
    gap: 1.75rem;
}

.page-header,
.dashboard-header,
.schedule-header,
.staff-header,
.form-header,
.staff-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-content,
.header-copy,
.staff-info {
    display: grid;
    gap: 0.5rem;
}

.page-eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(188, 198, 216, 0.5);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-title,
.page-header h1,
.dashboard h1,
.schedule-header h1,
.staff-header h1,
.form-header h1,
.staff-detail-header h1,
.gfs-header h1,
.login-card h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.page-subtitle,
.subtitle,
.login-subtitle,
.staff-meta,
.gfs-header .subtitle {
    margin: 0;
    max-width: 70ch;
    color: var(--text-secondary);
    font-size: 1rem;
}

.hero-panel,
.panel,
.card,
.status-section,
.staff-table-wrapper,
.schedule-grid-wrapper,
.info-card,
.form-card,
.login-card,
.gfs-upload-section,
.gfs-info,
.gfs-recent,
.history-table-wrapper,
.items-section,
.actions-section,
.seed-section,
.current-evidence,
.progress-summary {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(18px);
}

.hero-panel,
.panel,
.status-section,
.card,
.form-card,
.info-card,
.progress-summary,
.gfs-info,
.gfs-upload-section,
.seed-section,
.actions-section,
.gfs-recent,
.history-table-wrapper,
.items-section,
.login-card {
    padding: clamp(1.3rem, 2vw, 2rem);
}

.hero-panel {
    display: grid;
    gap: 1.4rem;
    background: var(--bg-hero);
    box-shadow: var(--shadow-md);
}

.hero-panel::after,
.panel::after,
.card::after,
.status-section::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    pointer-events: none;
}

.hero-panel--dashboard {
    grid-template-columns: minmax(0, 2.1fr) minmax(18rem, 1fr);
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 1rem;
}

.hero-actions,
.page-actions,
.toolbar,
.filters,
.form-actions,
.gap-2,
.d-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-stats,
.summary-grid,
.stats-grid,
.dashboard-grid,
.status-grid,
.metric-grid,
.module-grid,
.completion-row,
.summary-cards {
    display: grid;
    gap: 1rem;
}

.hero-stats,
.stats-grid,
.summary-grid,
.summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric-grid,
.status-grid,
.dashboard-grid,
.module-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero-stat,
.stat-card,
.metric-card,
.summary-card,
.status-item,
.progress-stat {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(188, 198, 216, 0.42);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    min-height: 100%;
}

.hero-stat-value,
.stat-value,
.metric-value,
.progress-stat .value,
.card-value {
    display: block;
    margin-bottom: 0.2rem;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hero-stat-label,
.stat-label,
.metric-label,
.progress-stat .label,
.card-label,
.text-small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-stat-note,
.metric-note,
.card-account,
.small-text,
.form-hint,
.help-text,
.file-help,
.not-set,
.view-all {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-title,
.panel-header h2,
.status-section h2,
.card h2,
.info-card h3,
.gfs-info h3,
.gfs-info h4,
.gfs-recent h3,
.items-section h3,
.actions-section h3,
.schedule-legend h3,
.item-info h3,
.item-info h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.panel-subtitle,
.card p,
.info-card p,
.item-info p {
    color: var(--text-secondary);
}

.module-card {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    min-height: 100%;
    overflow: hidden;
    transform: translateY(0);
}

.module-card:hover,
.staff-card:hover,
.category-card:hover,
.item-row:hover,
.card:hover,
.progress-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.module-card::before,
.staff-card::before,
.category-card::before,
.progress-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
}

.module-card.schedule::before {
    background: linear-gradient(90deg, var(--primary), #7c3aed);
}

.module-card.licensing::before {
    background: linear-gradient(90deg, var(--teal), #34d399);
}

.module-card.gfs::before {
    background: linear-gradient(90deg, var(--amber), #fb7185);
}

.module-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.module-icon,
.section-icon,
.empty-state-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-dark);
}

.module-card.licensing .module-icon {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

.module-card.gfs .module-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.module-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.module-description,
.module-list,
.schedule-legend li,
.allocation-info li,
.gfs-info li {
    color: var(--text-secondary);
}

.module-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.45rem;
    font-size: 0.92rem;
}

.module-footer,
.footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.pill-nav,
.filter-tabs,
.toolbar-group,
.category-suggestions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.pill,
.filter-tab,
.category-suggestion,
.item-category,
.type-badge,
.badge,
.status-badge,
.assignment-shift,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pill,
.filter-tab,
.category-suggestion,
.chip {
    color: var(--text-secondary);
    background: rgba(241, 245, 249, 0.82);
    border-color: rgba(188, 198, 216, 0.42);
}

.pill:hover,
.filter-tab:hover,
.category-suggestion:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.filter-tab.active,
.pill.is-active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(20, 184, 166, 0.12));
    color: var(--primary-dark);
    border-color: rgba(79, 70, 229, 0.18);
}

.badge,
.status-badge,
.item-category,
.assignment-shift,
.type-badge {
    background: rgba(241, 245, 249, 0.85);
    border-color: rgba(188, 198, 216, 0.38);
    color: var(--text-secondary);
}

.badge-success,
.status-badge.active,
.status-badge.approved,
.type-badge.food,
.assignment-shift.before,
.item-status.valid {
    background: var(--success-soft);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.18);
}

.badge-warning,
.status-badge.pending,
.btn-warning,
.item-status.expiring-soon {
    background: var(--warning-soft);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.18);
}

.badge-danger,
.status-badge.inactive,
.status-badge.rejected,
.btn-danger,
.item-status.expired,
.item-status.incomplete {
    background: var(--error-soft);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.16);
}

.badge-info,
.assignment-shift.after,
.type-badge.disposable {
    background: rgba(236, 250, 255, 0.95);
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.18);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.8rem;
    padding: 0.82rem 1.15rem;
    border-radius: 0.95rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), border-color var(--ease), color var(--ease), opacity var(--ease);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.18);
    outline-offset: 2px;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--primary), #6366f1 60%, #4f46e5);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover,
.btn-success:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary,
.btn-ghost,
.btn-warning,
.btn-danger {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-primary);
    border-color: rgba(188, 198, 216, 0.52);
}

.btn-secondary:hover,
.btn-ghost:hover,
.btn-warning:hover,
.btn-danger:hover {
    color: var(--text-primary);
    background: white;
}

.btn-danger {
    color: #b91c1c;
}

.btn-warning {
    color: #b45309;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 2.2rem;
    padding: 0.62rem 0.85rem;
    font-size: 0.78rem;
}

.btn-lg {
    min-height: 3.15rem;
    padding-inline: 1.45rem;
    font-size: 0.96rem;
}

.btn-logout {
    color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea,
.form-control,
.upload-form input[type="file"] {
    width: 100%;
    border: 1px solid rgba(188, 198, 216, 0.62);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-primary);
    padding: 0.88rem 0.95rem;
    border-radius: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:hover,
select:hover,
textarea:hover,
.upload-form input[type="file"]:hover {
    border-color: rgba(141, 152, 174, 0.7);
}

input:focus,
select:focus,
textarea:focus,
.upload-form input[type="file"]:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 6rem;
}

.form-group {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-group label,
.assignment-form label,
.filter-form label,
.completion-field label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-row,
.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-group.checkbox,
.checkbox-label,
.staff-form .checkbox label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-secondary);
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.flash-messages {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
}

.alert-success,
.alert.alert-success {
    background: var(--success-soft);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.18);
}

.alert-error,
.alert.alert-error {
    background: var(--error-soft);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.16);
}

.alert-warning,
.alert.alert-warning {
    background: var(--warning-soft);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.18);
}

.alert-info,
.alert.alert-info,
.instructions {
    background: var(--info-soft);
    color: #075985;
    border-color: rgba(14, 165, 233, 0.18);
}

.table-card,
.data-table-wrapper,
.history-table-wrapper,
.staff-table-wrapper,
.schedule-grid-wrapper,
.items-table-wrapper {
    overflow: auto;
}

table,
.data-table,
.staff-table,
.history-table,
.items-table,
.schedule-grid {
    width: 100%;
    border-collapse: collapse;
}

th,
td,
.data-table th,
.data-table td,
.staff-table th,
.staff-table td,
.history-table th,
.history-table td,
.items-table th,
.items-table td,
.schedule-grid th,
.schedule-grid td {
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(215, 222, 234, 0.82);
    text-align: left;
    vertical-align: top;
}

th,
.data-table th,
.staff-table th,
.history-table th,
.items-table th,
.schedule-grid th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(243, 246, 251, 0.95);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.staff-table tbody tr:hover,
.history-table tbody tr:hover,
.data-table tbody tr:hover,
.items-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.72);
}

.numeric {
    font-family: var(--font-mono);
    text-align: right;
}

.progress {
    width: 100%;
    height: 0.72rem;
    background: rgba(215, 222, 234, 0.9);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar,
.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
}

.progress-bar.success,
.progress-fill.success {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-bar.warning,
.progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-bar.danger,
.progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #fb7185);
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    text-align: center;
    padding: 2.4rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(188, 198, 216, 0.75);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
}

.empty-state-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(20, 184, 166, 0.12));
}

.current-week {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(188, 198, 216, 0.48);
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
}

.schedule-container {
    gap: 1.35rem;
}

.schedule-grid-wrapper {
    padding: 0;
    overflow: auto;
}

.schedule-grid {
    min-width: 940px;
}

.schedule-grid th,
.schedule-grid td {
    padding: 0.9rem;
    border-right: 1px solid rgba(215, 222, 234, 0.72);
}

.schedule-grid th:last-child,
.schedule-grid td:last-child {
    border-right: 0;
}

.day-header {
    min-width: 170px;
    text-align: left;
}

.day-header.today {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.12), rgba(255, 255, 255, 0.96));
}

.day-name {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.06em;
}

.day-date {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shift-header,
.shift-label {
    min-width: 150px;
    background: rgba(243, 246, 251, 0.95);
}

.shift-label {
    vertical-align: middle;
}

.shift-label strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.shift-time {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.shift-cell {
    min-height: 8.5rem;
    background: rgba(255, 255, 255, 0.56);
}

.cell-content {
    display: grid;
    gap: 0.55rem;
    min-height: 7rem;
}

.assigned-staff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.78rem 0.9rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(238, 242, 255, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-xs);
}

.assigned-staff .staff-name {
    font-weight: 700;
    color: var(--text-primary);
}

.delete-form,
.inline-form {
    display: inline-flex;
    margin: 0;
}

.btn-remove {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.18);
}

.add-link,
.add-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
    border-radius: 1rem;
}

.add-link {
    min-height: 5rem;
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.52);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text-secondary);
}

.add-link:hover {
    color: var(--primary-dark);
    border-color: rgba(79, 70, 229, 0.35);
    background: rgba(245, 247, 255, 0.95);
}

.unassigned {
    font-style: normal;
}

.add-more {
    width: fit-content;
    margin-top: 0.1rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.8rem;
    color: var(--primary-dark);
    background: rgba(79, 70, 229, 0.08);
}

.schedule-legend {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(188, 198, 216, 0.42);
}

.schedule-legend ul,
.gfs-info ol,
.gfs-info ul {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.45rem;
}

.modal-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}

.modal-container:not(:empty) {
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(9, 13, 22, 0.42);
    backdrop-filter: blur(8px);
}

.modal-content {
    width: min(100%, 30rem);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(215, 222, 234, 0.8);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 50%;
    background: rgba(241, 245, 249, 0.9);
    color: var(--text-secondary);
    cursor: pointer;
}

.assignment-form,
.staff-form,
.approve-form,
.reject-form {
    display: grid;
    gap: 0.95rem;
}

.assignment-form {
    padding: 1.2rem 1.25rem 1.3rem;
}

.staff-actions,
.schedule-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.staff-table th.actions,
.actions {
    width: auto;
}

.staff-name a,
.staff-card .staff-name,
.item-title,
.evidence-link,
.view-all a,
.page-link {
    color: var(--text-primary);
    font-weight: 700;
}

.staff-name a:hover,
.staff-card .staff-name:hover,
.evidence-link:hover,
.view-all a:hover,
.page-link:hover {
    color: var(--primary-dark);
}

.staff-table .notes,
.item-description,
.description,
.confirm-text {
    color: var(--text-secondary);
}

.staff-table tbody tr.inactive {
    opacity: 0.72;
}

.staff-legend,
.allocation-info,
.completion-details,
.item-info,
.current-evidence {
    background: rgba(246, 248, 252, 0.92);
    border: 1px solid rgba(215, 222, 234, 0.82);
    border-radius: var(--radius-lg);
}

.staff-legend,
.allocation-info,
.item-info,
.current-evidence,
.completion-details {
    padding: 1rem 1.1rem;
}

.staff-info-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-card dl {
    display: grid;
    grid-template-columns: minmax(95px, 130px) 1fr;
    gap: 0.55rem 1rem;
    margin: 0;
}

.info-card dt {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-card dd {
    margin: 0;
    color: var(--text-primary);
}

.staff-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(215, 222, 234, 0.8);
}

.assignment-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
}

.assignment-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    background: rgba(246, 248, 252, 0.82);
    border: 1px solid rgba(215, 222, 234, 0.72);
    border-radius: 1rem;
}

.assignment-list li.past {
    opacity: 0.72;
}

.assignment-date {
    font-weight: 600;
}

.staff-detail-actions,
.nav-actions,
.action-buttons,
.item-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-overview .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.licensing-dashboard,
.licensing-checklist {
    display: grid;
    gap: 1.25rem;
}

.staff-progress-grid,
.checklist-grid {
    display: grid;
    gap: 1rem;
}

.staff-card,
.progress-card,
.checklist-item,
.item-row,
.category-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    overflow: hidden;
}

.staff-card.complete::before,
.progress-card.complete::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.staff-card.expiring::before,
.progress-card.expiring::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.staff-card.incomplete::before,
.progress-card.incomplete::before,
.checklist-item.expired::before,
.checklist-item.incomplete::before {
    background: linear-gradient(90deg, #ef4444, #fb7185);
}

.checklist-item.valid::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.checklist-item.expiring-soon::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.staff-card-header,
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-section {
    display: grid;
    gap: 0.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.incomplete-items,
.issue-list,
.meta-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.incomplete-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(188, 198, 216, 0.45);
    background: rgba(248, 250, 252, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.incomplete-item.expired,
.incomplete-item.incomplete {
    background: rgba(254, 242, 242, 0.92);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.15);
}

.status-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}

.status-indicator.valid {
    color: #10b981;
}

.status-indicator.expiring-soon {
    color: #f59e0b;
}

.status-indicator.expired,
.status-indicator.incomplete {
    color: #ef4444;
}

.completion-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.completion-field {
    display: grid;
    gap: 0.25rem;
}

.completion-field .value {
    font-weight: 700;
    color: var(--text-primary);
}

.item-actions {
    margin-top: 1rem;
}

.item-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.items-list {
    display: grid;
    gap: 1rem;
}

.category-group {
    display: grid;
    gap: 0.9rem;
}

.category-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.file-input-wrapper input[type="file"] {
    padding: 0.9rem;
    border-style: dashed;
}

.login-container {
    min-height: calc(100vh - 11rem);
    display: grid;
    place-items: center;
    padding: 1rem 0;
}

.login-card {
    width: min(100%, 30rem);
    display: grid;
    gap: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.94));
}

.login-card h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    text-align: center;
}

.login-form {
    display: grid;
    gap: 0.5rem;
}

.gfs-container {
    max-width: 1120px;
    margin: 0 auto;
}

.gfs-header {
    display: grid;
    gap: 0.45rem;
}

.gfs-upload-section,
.gfs-info,
.gfs-recent,
.history-table-wrapper,
.items-section,
.actions-section {
    padding: 1.4rem;
}

.gfs-info {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(20, 184, 166, 0.09), rgba(255, 255, 255, 0.95));
}

.gfs-info h3,
.gfs-info h4,
.gfs-recent h3,
.items-section h3 {
    margin-bottom: 0.75rem;
}

.view-all {
    margin-top: 1rem;
    text-align: right;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.divider {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid rgba(215, 222, 234, 0.85);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-danger {
    color: #b91c1c;
}

.text-warning {
    color: #b45309;
}

.mt-2 {
    margin-top: 0.5rem;
}

.site-footer {
    padding: 0 1.25rem 1.25rem;
}

.site-footer p {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(188, 198, 216, 0.38);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .hero-panel--dashboard {
        grid-template-columns: 1fr;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
    }

    .nav-user {
        margin-left: auto;
    }

    .schedule-grid {
        min-width: 760px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding-inline: 0.8rem;
    }

    .main-content,
    .site-footer {
        padding-inline: 0.8rem;
    }

    .brand-subtitle,
    .user-label {
        display: none;
    }

    .user-chip {
        padding-right: 0.42rem;
    }

    .page-title,
    .page-header h1,
    .dashboard h1,
    .schedule-header h1,
    .staff-header h1,
    .form-header h1,
    .staff-detail-header h1,
    .gfs-header h1,
    .login-card h1 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .hero-panel,
    .panel,
    .card,
    .status-section,
    .form-card,
    .info-card,
    .login-card,
    .gfs-upload-section,
    .gfs-info,
    .gfs-recent,
    .history-table-wrapper,
    .items-section,
    .actions-section,
    .seed-section {
        padding: 1.1rem;
    }

    .schedule-nav,
    .schedule-actions,
    .staff-actions,
    .page-actions,
    .hero-actions,
    .filters,
    .form-actions,
    .staff-detail-actions,
    .nav-actions,
    .item-actions,
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .filter-form,
    .filter-tabs,
    .pill-nav {
        width: 100%;
    }

    .filter-tab,
    .pill {
        justify-content: center;
        flex: 1 1 auto;
    }

    .staff-header,
    .page-header,
    .schedule-header,
    .form-header,
    .staff-detail-header,
    .dashboard-header,
    .item-header,
    .staff-card-header {
        align-items: stretch;
    }

    .completion-row,
    .hero-stats,
    .stats-grid,
    .summary-grid,
    .metric-grid,
    .status-grid,
    .module-grid,
    .summary-cards,
    .staff-info-grid {
        grid-template-columns: 1fr;
    }

    .item-row {
        flex-direction: column;
    }

    .schedule-grid {
        min-width: 680px;
    }

    .shift-time {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Theme */
[data-theme="dark"] {
    color-scheme: dark;
    --bg-body: linear-gradient(180deg, #0d1117 0%, #0a0e14 44%, #070a10 100%);
    --bg-card: rgba(22, 27, 34, 0.92);
    --bg-card-strong: #161b22;
    --bg-muted: rgba(33, 38, 45, 0.9);
    --bg-header: rgba(22, 27, 34, 0.78);
    --bg-hero: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(20, 184, 166, 0.12) 48%, rgba(22, 27, 34, 0.95) 100%);
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-400);
    --text-muted: var(--gray-500);
    --text-inverse: var(--gray-900);
    --border-color: rgba(88, 96, 110, 0.6);
    --border-strong: rgba(110, 118, 129, 0.42);
}

[data-theme="dark"] body::before {
    background: rgba(99, 102, 241, 0.14);
}

[data-theme="dark"] body::after {
    background: rgba(20, 184, 166, 0.1);
}

[data-theme="dark"] .main-nav {
    border-color: rgba(88, 96, 110, 0.6);
    background: var(--bg-header);
}

[data-theme="dark"] .nav-links {
    background: rgba(33, 38, 45, 0.82);
    border-color: rgba(88, 96, 110, 0.4);
}

[data-theme="dark"] .nav-links a:hover {
    background: rgba(48, 54, 61, 0.78);
}

[data-theme="dark"] .nav-links a.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(20, 184, 166, 0.15));
}

[data-theme="dark"] .user-chip {
    background: rgba(33, 38, 45, 0.85);
    border-color: rgba(88, 96, 110, 0.45);
}

[data-theme="dark"] .hero-panel,
[data-theme="dark"] .panel,
[data-theme="dark"] .card,
[data-theme="dark"] .status-section,
[data-theme="dark"] .staff-table-wrapper,
[data-theme="dark"] .schedule-grid-wrapper,
[data-theme="dark"] .info-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .login-card,
[data-theme="dark"] .gfs-upload-section,
[data-theme="dark"] .gfs-info,
[data-theme="dark"] .gfs-recent,
[data-theme="dark"] .history-table-wrapper,
[data-theme="dark"] .items-section,
[data-theme="dark"] .actions-section,
[data-theme="dark"] .seed-section,
[data-theme="dark"] .current-evidence,
[data-theme="dark"] .progress-summary {
    background: var(--bg-card);
    border-color: rgba(88, 96, 110, 0.6);
}

[data-theme="dark"] .hero-panel::after,
[data-theme="dark"] .panel::after,
[data-theme="dark"] .card::after,
[data-theme="dark"] .status-section::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
}

[data-theme="dark"] .hero-stat,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .summary-card,
[data-theme="dark"] .status-item,
[data-theme="dark"] .progress-stat {
    background: rgba(33, 38, 45, 0.72);
    border-color: rgba(88, 96, 110, 0.42);
}

[data-theme="dark"] .module-card,
[data-theme="dark"] .staff-card,
[data-theme="dark"] .progress-card,
[data-theme="dark"] .checklist-item,
[data-theme="dark"] .item-row,
[data-theme="dark"] .category-card {
    background: var(--bg-card);
    border-color: rgba(88, 96, 110, 0.6);
}

[data-theme="dark"] .pill,
[data-theme="dark"] .filter-tab,
[data-theme="dark"] .category-suggestion,
[data-theme="dark"] .chip {
    background: rgba(33, 38, 45, 0.82);
    border-color: rgba(88, 96, 110, 0.42);
}

[data-theme="dark"] .pill:hover,
[data-theme="dark"] .filter-tab:hover,
[data-theme="dark"] .category-suggestion:hover {
    background: rgba(48, 54, 61, 0.9);
}

[data-theme="dark"] .filter-tab.active,
[data-theme="dark"] .pill.is-active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(20, 184, 166, 0.15));
}

[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .btn-warning,
[data-theme="dark"] .btn-danger {
    background: rgba(33, 38, 45, 0.82);
    border-color: rgba(88, 96, 110, 0.52);
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-ghost:hover,
[data-theme="dark"] .btn-warning:hover,
[data-theme="dark"] .btn-danger:hover {
    background: rgba(48, 54, 61, 0.95);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .form-control {
    background: rgba(22, 27, 34, 0.88);
    border-color: rgba(88, 96, 110, 0.62);
    color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    background: #0d1117;
}

[data-theme="dark"] th,
[data-theme="dark"] .data-table th,
[data-theme="dark"] .staff-table th,
[data-theme="dark"] .history-table th,
[data-theme="dark"] .items-table th,
[data-theme="dark"] .schedule-grid th {
    background: rgba(33, 38, 45, 0.95);
}

[data-theme="dark"] td,
[data-theme="dark"] .data-table td,
[data-theme="dark"] .staff-table td,
[data-theme="dark"] .history-table td,
[data-theme="dark"] .items-table td,
[data-theme="dark"] .schedule-grid td {
    border-bottom-color: rgba(88, 96, 110, 0.42);
}

[data-theme="dark"] .staff-table tbody tr:hover,
[data-theme="dark"] .history-table tbody tr:hover,
[data-theme="dark"] .data-table tbody tr:hover,
[data-theme="dark"] .items-table tbody tr:hover {
    background: rgba(33, 38, 45, 0.72);
}

[data-theme="dark"] .progress {
    background: rgba(88, 96, 110, 0.5);
}

[data-theme="dark"] .empty-state {
    background: rgba(22, 27, 34, 0.6);
    border-color: rgba(88, 96, 110, 0.5);
}

[data-theme="dark"] .empty-state-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(20, 184, 166, 0.12));
}

[data-theme="dark"] .current-week {
    background: rgba(22, 27, 34, 0.78);
    border-color: rgba(88, 96, 110, 0.48);
}

[data-theme="dark"] .schedule-grid th,
[data-theme="dark"] .schedule-grid td {
    border-right-color: rgba(88, 96, 110, 0.42);
}

[data-theme="dark"] .day-header.today {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.18), rgba(22, 27, 34, 0.96));
}

[data-theme="dark"] .shift-cell {
    background: rgba(22, 27, 34, 0.56);
}

[data-theme="dark"] .assigned-staff {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(79, 70, 229, 0.1));
    border-color: rgba(88, 96, 110, 0.22);
}

[data-theme="dark"] .add-link {
    background: rgba(22, 27, 34, 0.74);
    border-color: rgba(88, 96, 110, 0.42);
}

[data-theme="dark"] .add-link:hover {
    background: rgba(33, 38, 45, 0.95);
}

[data-theme="dark"] .add-more {
    background: rgba(79, 70, 229, 0.12);
}

[data-theme="dark"] .schedule-legend {
    background: rgba(22, 27, 34, 0.62);
    border-color: rgba(88, 96, 110, 0.42);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(9, 13, 22, 0.65);
}

[data-theme="dark"] .modal-content {
    background: rgba(22, 27, 34, 0.96);
    border-color: rgba(88, 96, 110, 0.7);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(88, 96, 110, 0.6);
}

[data-theme="dark"] .modal-close {
    background: rgba(33, 38, 45, 0.9);
}

[data-theme="dark"] .staff-legend,
[data-theme="dark"] .allocation-info,
[data-theme="dark"] .completion-details,
[data-theme="dark"] .item-info,
[data-theme="dark"] .current-evidence {
    background: rgba(33, 38, 45, 0.92);
    border-color: rgba(88, 96, 110, 0.6);
}

[data-theme="dark"] .assignment-list li {
    background: rgba(33, 38, 45, 0.82);
    border-color: rgba(88, 96, 110, 0.5);
}

[data-theme="dark"] .incomplete-item {
    background: rgba(33, 38, 45, 0.9);
    border-color: rgba(88, 96, 110, 0.45);
}

[data-theme="dark"] .incomplete-item.expired,
[data-theme="dark"] .incomplete-item.incomplete {
    background: rgba(66, 27, 27, 0.85);
}

[data-theme="dark"] .login-card {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.94));
}

[data-theme="dark"] .gfs-info {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(20, 184, 166, 0.1), rgba(22, 27, 34, 0.95));
}

[data-theme="dark"] .page-eyebrow,
[data-theme="dark"] .eyebrow {
    background: rgba(22, 27, 34, 0.72);
    border-color: rgba(88, 96, 110, 0.5);
}

[data-theme="dark"] .divider {
    border-top-color: rgba(88, 96, 110, 0.6);
}

[data-theme="dark"] .site-footer p {
    background: rgba(22, 27, 34, 0.62);
    border-color: rgba(88, 96, 110, 0.38);
}

/* Theme Toggle Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(188, 198, 216, 0.42);
    border-radius: var(--radius-md);
    background: rgba(241, 245, 249, 0.82);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--ease);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    transform: translateY(-1px);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(33, 38, 45, 0.82);
    border-color: rgba(88, 96, 110, 0.42);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(48, 54, 61, 0.9);
    color: var(--text-primary);
}
