@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --primary-color: #00A651;
    --primary-dark: #008040;
    --primary-soft: #E6F7F0;
    --secondary-color: #DC143C;
    --secondary-soft: #FFE6E6;
    --accent-blue: #0066CC;
    --accent-yellow: #FFD700;
    --accent-brown: #8B4513;
    --success-color: #00A651;
    --danger-color: #DC143C;
    --warning-color: #FFD700;
    --info-color: #0066CC;
    --ink-900: #102a43;
    --ink-700: #334e68;
    --ink-500: #627d98;
    --surface-100: #f7fafc;
    --surface-200: #edf2f7;
    --surface-300: #d9e2ec;
    --surface-card: rgba(255, 255, 255, 0.92);
    --shadow-soft: 0 18px 45px rgba(16, 42, 67, 0.08);
    --shadow-strong: 0 24px 60px rgba(0, 166, 81, 0.18);
    --radius-lg: 1.25rem;
    --radius-md: 0.9rem;
    --radius-sm: 0.65rem;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(0, 166, 81, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(220, 20, 60, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fcfb 0%, #eef5f7 45%, #f7fafc 100%);
    color: var(--ink-900);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.6;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.display-5,
.display-4,
.hero-kicker {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
}

a {
    color: var(--primary-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--primary-dark);
}

:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.28);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--ink-900);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 2000;
}

.skip-link:focus {
    top: 1rem;
}

.navbar {
    background: rgba(0, 166, 81, 0.95) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(16, 42, 67, 0.12);
}

.navbar-brand {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    max-width: 45px;
}

.navbar-brand span {
    display: none;
}

@media (min-width: 992px) {
    .navbar-brand span {
        display: inline;
        font-size: 0.95rem;
    }
}

.nav-link,
.navbar .btn {
    font-weight: 600;
}

.page-shell {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.section-shell {
    padding: 5rem 0;
}

.section-shell.compact {
    padding: 3.5rem 0;
}

.hero-surface {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    background:
        linear-gradient(140deg, rgba(0, 166, 81, 0.96), rgba(0, 128, 64, 0.92)),
        linear-gradient(45deg, rgba(220, 20, 60, 0.28), transparent 55%);
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.hero-surface::before,
.hero-surface::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-surface::before {
    width: 20rem;
    height: 20rem;
    top: -7rem;
    right: -4rem;
}

.hero-surface::after {
    width: 14rem;
    height: 14rem;
    bottom: -6rem;
    left: -2rem;
}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 1;
}

/* ===== ILLUSTRATION IMAGES ===== */

.hero-illustration {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0, 166, 81, 0.15));
    animation: floatUp 0.8s ease-out;
}

.auth-illustration {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    opacity: 0.92;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.1));
    animation: floatUp 0.6s ease-out;
}

.feature-icon {
    display: block;
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.helper-card:hover .feature-icon,
.support-card:hover .feature-icon {
    transform: scale(1.1) translateY(-4px);
}

.cta-illustration {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 6px 20px rgba(13, 148, 136, 0.12));
}

.step-icon-img {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.hero-panel,
.glass,
.info-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
}

.hero-stat-grid,
.metrics-grid {
    display: grid;
    gap: 1rem;
}

.hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.card,
.panel-card,
.empty-state,
.action-card,
.list-card {
    border: 1px solid rgba(151, 166, 183, 0.18) !important;
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
}

.card,
.panel-card,
.list-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.panel-card:hover,
.list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(16, 42, 67, 0.1) !important;
    border-color: rgba(15, 118, 110, 0.18) !important;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.72rem 1.2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #073b37 100%);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.25);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: rgba(15, 118, 110, 0.35);
    background: rgba(255, 255, 255, 0.68);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: var(--primary-dark);
}

.btn-soft {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: none;
}

.btn-soft:hover,
.btn-soft:focus {
    background: #c3ede6;
    color: var(--primary-dark);
}

.btn-ghost-danger {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: var(--danger-color);
}

.btn-ghost-danger:hover,
.btn-ghost-danger:focus {
    background: #fee2e2;
    color: #991b1b;
}

.form-control,
.form-select,
.form-check-input {
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-300);
    background-color: rgba(255, 255, 255, 0.9);
    min-height: 3rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(15, 118, 110, 0.45);
    background-color: #fff;
    box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.16);
}

.form-text,
.text-muted {
    color: var(--ink-500) !important;
}

.input-group .btn {
    border-radius: var(--radius-md);
}

.field-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.field-valid {
    color: var(--success-color);
}

.badge {
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
}

.badge-warning {
    background-color: #fff3cd;
    color: #92400e;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background-color: #e2e8f0;
    color: #334155;
}

.badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.alert {
    border-radius: var(--radius-md);
    border: none;
    animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.45s ease both;
}

/* ===== SCROLL-TRIGGERED REVEAL =====
   Paired with scroll-reveal.js (IntersectionObserver), which adds
   is-visible as each [data-reveal] element enters the viewport. Elements
   are hidden by default, so any page using this attribute must also import
   scroll-reveal.js and include a <noscript> fallback (see index.html) in
   case JS is disabled. */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="left"] {
    transform: translateX(-32px);
}

[data-reveal="left"].is-visible {
    transform: translateX(0);
}

[data-reveal="right"] {
    transform: translateX(32px);
}

[data-reveal="right"].is-visible {
    transform: translateX(0);
}

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* If JS is disabled entirely, scroll-reveal.js never runs to add
   is-visible. Each page that uses [data-reveal] pairs it with a literal
   <noscript><style>...</style></noscript> override in its <head> so content
   isn't left permanently invisible — that override only takes effect when
   the browser doesn't run JS, since browsers skip <noscript> contents
   otherwise. */

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.nav-tabs {
    gap: 0.5rem;
    border-bottom: 0;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ink-700);
    background: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: var(--primary-dark);
    border-color: rgba(15, 118, 110, 0.18);
}

.nav-tabs .nav-link.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.modal-content {
    border-radius: 1.4rem;
    border: 1px solid rgba(151, 166, 183, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 70px rgba(16, 42, 67, 0.18);
}

.modal-header,
.modal-footer {
    border-color: rgba(217, 226, 236, 0.9);
}

.modal-title {
    font-weight: 700;
}

.table {
    margin-bottom: 0;
}

.table td,
.table th {
    padding: 0.9rem 0.75rem;
    border-color: #e2e8f0;
}

.table-hover tbody tr:hover {
    background-color: rgba(15, 118, 110, 0.04);
}

.list-group-item {
    border: 1px solid #e2e8f0;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.list-group-item:hover,
.list-group-item:focus-within {
    background-color: #f8fffd;
    border-color: rgba(15, 118, 110, 0.22);
}

.list-group-item input[type="radio"] {
    margin-right: 0.65rem;
}

.auth-layout {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
}

.auth-promo,
.auth-card {
    border-radius: 1.75rem;
}

.auth-promo {
    padding: 2.5rem;
    background:
        linear-gradient(160deg, rgba(11, 79, 74, 0.97), rgba(15, 118, 110, 0.88)),
        linear-gradient(45deg, rgba(249, 115, 22, 0.18), transparent 60%);
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.auth-card {
    padding: 2rem;
}

.role-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.role-choice {
    display: block;
    padding: 1rem;
    border: 1px solid #d9e2ec;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.role-choice:hover,
.role-choice:focus-within {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.3);
    box-shadow: 0 16px 30px rgba(16, 42, 67, 0.08);
}

.role-choice.active {
    border-color: rgba(15, 118, 110, 0.55);
    background: #f5fffc;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.inline-list,
.support-list,
.feature-list,
.check-list {
    display: grid;
    gap: 0.75rem;
    padding-left: 0;
    list-style: none;
}

.check-list li,
.support-list li,
.feature-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.check-list i,
.support-list i,
.feature-list i,
.inline-icon {
    color: var(--secondary-color);
}

.section-intro {
    max-width: 42rem;
}

.surface-strip {
    background: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(217, 226, 236, 0.8);
    border-bottom: 1px solid rgba(217, 226, 236, 0.8);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(151, 166, 183, 0.24);
    color: var(--ink-700);
    font-size: 0.92rem;
    font-weight: 700;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    padding: 1.25rem;
}

.metric-card .metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.5rem;
}

.dashboard-sidebar {
    display: grid;
    gap: 1.5rem;
}

.toolbar {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.panel-card,
.action-card,
.empty-state {
    padding: 1.35rem;
}

.empty-state {
    text-align: center;
    border-style: dashed !important;
    background: rgba(255, 255, 255, 0.72);
}

/* ===== ADMIN USER TABLE ===== */

.user-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.empty-state i {
    font-size: 2rem;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 0.85rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.priority-banner {
    padding: 1.2rem 1.3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--secondary-soft), #fffdf8);
    border: 1px solid rgba(249, 115, 22, 0.22);
}

.appointment-item,
.slot-item,
.lecturer-item {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(217, 226, 236, 0.85);
    background: #fff;
}

.appointment-item + .appointment-item,
.slot-item + .slot-item,
.lecturer-item + .lecturer-item {
    margin-top: 0.85rem;
}

.appointment-meta,
.mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--ink-500);
    font-size: 0.92rem;
}

.toolbar .form-control,
.toolbar .form-select {
    min-height: 2.8rem;
}

.search-hint {
    font-size: 0.9rem;
    color: var(--ink-500);
}

.footer-note {
    border-top: 1px solid rgba(217, 226, 236, 0.9);
    color: var(--ink-500);
}

.helper-card {
    background: linear-gradient(180deg, #ffffff, #f8fcfb);
}

.support-card {
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.spinner-border {
    color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.visually-soft {
    color: var(--ink-500);
}

@media (max-width: 992px) {
    .auth-shell,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-illustration {
        max-width: 240px;
    }

    .stats-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-shell,
    .section-shell {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-surface,
    .auth-promo,
    .auth-card {
        border-radius: 1.35rem;
    }

    .hero-stat-grid,
    .role-choice-grid {
        grid-template-columns: 1fr;
    }

    .metric-card .metric-value {
        font-size: 1.6rem;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .display-5 {
        font-size: 1.9rem;
    }

    .btn:not(.btn-sm):not(.pagination-controls .btn):not(.calendar-nav .btn),
    .btn-lg {
        width: 100%;
    }

    .chip-row,
    .appointment-meta,
    .mini-meta {
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.text-info {
    color: var(--info-color) !important;
}

.text-muted {
    color: #6b7280 !important;
}

/* Disabled State */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    gap: 1rem;
}

.loading-spinner .spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--surface-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--ink-500);
    font-size: 0.92rem;
    margin: 0;
}

.btn .btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 0.5rem;
    vertical-align: -0.15em;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--surface-200) 25%, var(--surface-100) 50%, var(--surface-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 80px;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-lg);
}

.skeleton-stat {
    height: 2rem;
    width: 3rem;
    display: inline-block;
}

/* ===== PAGINATION ===== */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 0.25rem;
    flex-wrap: wrap;
}

.pagination-controls .btn {
    min-width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: auto;
}

.pagination-controls .page-info {
    font-size: 0.875rem;
    color: var(--ink-500);
    font-weight: 600;
    padding: 0 0.5rem;
}

/* ===== CALENDAR VIEW ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    border: 1px solid var(--surface-300);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.calendar-header-cell {
    background: var(--primary-soft);
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.calendar-cell {
    background: #fff;
    min-height: 70px;
    padding: 0.35rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.85rem;
}

.calendar-cell:hover {
    background-color: var(--surface-100);
}

.calendar-cell.today {
    background-color: rgba(15, 118, 110, 0.06);
}

.calendar-cell.other-month {
    color: var(--ink-500);
    opacity: 0.5;
}

.calendar-cell .day-number {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.calendar-cell.today .day-number {
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell .calendar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin: 1px;
}

.calendar-dot.dot-pending { background: var(--warning-color); }
.calendar-dot.dot-approved { background: var(--success-color); }
.calendar-dot.dot-rejected { background: var(--danger-color); }
.calendar-dot.dot-available { background: var(--primary-color); }

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.calendar-nav h3 {
    margin: 0;
    font-size: 1.1rem;
}

.calendar-nav .btn {
    padding: 0.35rem 0.75rem;
    min-width: auto;
    width: auto;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--ink-500);
    margin-bottom: 0.75rem;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ===== NOTIFICATION TOAST ===== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    border: 1px solid rgba(151, 166, 183, 0.18);
    box-shadow: 0 12px 40px rgba(16, 42, 67, 0.15);
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-notification.toast-exit {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-notification .toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.toast-notification .toast-body {
    flex: 1;
}

.toast-notification .toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.toast-notification .toast-message {
    font-size: 0.85rem;
    color: var(--ink-500);
    margin: 0;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--ink-500);
    padding: 0;
    line-height: 1;
}

.toast-notification.toast-success .toast-icon { color: var(--success-color); }
.toast-notification.toast-danger .toast-icon { color: var(--danger-color); }
.toast-notification.toast-warning .toast-icon { color: var(--warning-color); }
.toast-notification.toast-info .toast-icon { color: var(--info-color); }

/* ===== PASSWORD STRENGTH METER ===== */
.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--surface-300);
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar .strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill.strength-weak { width: 25%; background: var(--danger-color); }
.strength-fill.strength-fair { width: 50%; background: var(--warning-color); }
.strength-fill.strength-good { width: 75%; background: var(--info-color); }
.strength-fill.strength-strong { width: 100%; background: var(--success-color); }

/* ===== STUDENT NOTES IN BOOKING ===== */
.booking-notes-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* ===== IMPROVED MOBILE ===== */
@media (max-width: 576px) {
    .hero-illustration {
        max-width: 280px;
    }

    .auth-illustration {
        max-width: 200px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .cta-illustration {
        display: none;
    }

    .stats-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .metric-card {
        padding: 0.85rem;
    }

    .metric-card .metric-value {
        font-size: 1.4rem;
    }

    .toolbar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 1rem;
    }

    .calendar-cell {
        min-height: 45px;
        padding: 0.2rem;
    }

    .calendar-header-cell {
        font-size: 0.7rem;
        padding: 0.35rem 0.15rem;
    }

    .pagination-controls {
        gap: 0.35rem;
    }

    .toast-container {
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
    }

    .toast-notification {
        min-width: 0;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, .toast-container {
        display: none;
    }

    body {
        background: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}
