/* ========== SIDEBAR SUBMENUS ON MOBILE ========== */
@media (max-width: 1023px) {
    .sidebar-submenu {
        display: block !important;
    }
    .submenu-toggle {
        display: none !important;
    }
}

/* ========== IMPROVEMENT HISTORY ========== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.imp-history-item {
    animation: impHistoryFadeIn 0.3s ease-out;
}
@keyframes impHistoryFadeIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ========== TEAM HIERARCHY ANIMATIONS ========== */
@keyframes hierFadeUp {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hierConnectorGrow {
    from { transform: scaleY(0); transform-origin: top; opacity: 0; }
    to   { transform: scaleY(1); transform-origin: top; opacity: 1; }
}
@keyframes hierConnectorGrowX {
    from { transform: scaleX(0); transform-origin: center; opacity: 0; }
    to   { transform: scaleX(1); transform-origin: center; opacity: 1; }
}
.hier-item {
    opacity: 0;
    animation: hierFadeUp 0.5s ease-out forwards;
    animation-delay: var(--hier-delay, 0ms);
}
.hier-connector-v {
    opacity: 0;
    animation: hierConnectorGrow 0.35s ease-out forwards;
    animation-delay: var(--hier-delay, 0ms);
}
.hier-connector-h {
    opacity: 0;
    animation: hierConnectorGrowX 0.45s ease-out forwards;
    animation-delay: var(--hier-delay, 0ms);
}
.hier-mode-btn.is-active {
    background: #2D3436;
    color: #fff;
}
.hier-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hier-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 52, 111, 0.12);
}

/* ========== AUTH GATE ========== */
html.guest body > *:not(#login-screen) { display: none !important; }
html.guest body { overflow: hidden !important; }
html.auth #login-screen { display: none !important; }

#login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #2D3436 0%, #3D4448 40%, #4a5568 100%);
    font-family: 'Sofia Sans', sans-serif;
}
#login-screen::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,0.08), transparent 45%);
    pointer-events: none;
}
.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
    animation: loginFadeIn 0.45s ease-out;
}
@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-logo {
    width: 84px; height: 84px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2D3436, #4a5568);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,52,111,0.35);
    margin: 0 auto 1rem;
    color: #fff;
    overflow: hidden;
}
.login-logo svg { width: 56px; height: 56px; display: block; }
.login-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.login-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2D3436;
    text-align: center;
    letter-spacing: -0.02em;
}
.login-subtitle {
    color: #64748b;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 1.75rem;
}
.login-field { margin-bottom: 1rem; }
.login-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.login-input-wrap { position: relative; }
#login-screen .login-input-wrap .material-symbols-outlined {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}
#login-screen .login-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.9rem !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    transition: border-color .15s, background .15s, box-shadow .15s;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.3;
}
#login-screen .login-input:focus {
    outline: none !important;
    border-color: #2D3436 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0,52,111,0.12) !important;
}
#login-screen .login-input::placeholder { color: #cbd5e1; opacity: 1; }
.login-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #2D3436, #4a5568);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(0,52,111,0.25);
    transition: transform .12s, box-shadow .15s, opacity .15s;
    font-family: inherit;
}
.login-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,52,111,0.32);
}
.login-btn:disabled { opacity: 0.6; cursor: wait; }
.login-error {
    display: none;
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    font-size: 0.82rem;
    text-align: center;
}
.login-error.show { display: block; }
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 16px;
    color: #94a3b8;
}
.login-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loginSpin 0.7s linear infinite;
}
@keyframes loginSpin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .login-card { padding: 2rem 1.25rem; }
    .login-title { font-size: 1.3rem; }
}

/* 🚀 Albatros ERP & CRM - Figma Matched Design */
:root {
    --sidebar-bg: #FFFFFF;
    --sidebar-text: #00346F;
    --sidebar-text-active: #00346F;
    --sidebar-border: #E2E8F0;
    
    --bg-main: #F5F7FA;
    --card-bg: #FFFFFF;
    
    --primary: #00346F;
    --primary-hover: #002550;
    
    --text-dark: #1A202C;
    --text-muted: #64748B;
    
    --border-color: #E2E8F0;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sofia Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
    display: flex;
}

/* Base Components */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 52, 111, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: #F8FAFC;
    border-color: var(--text-muted);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }

/* 1. Sidebar (White Layout) */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    margin-bottom: 40px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.nav-item:hover {
    background-color: #F1F5F9;
    color: var(--text-dark);
}

.nav-item.active {
    background-color: rgba(0, 52, 111, 0.1);
    color: var(--sidebar-text-active);
}

.nav-icon {
    font-size: 22px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-group-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94A3B8;
    margin: 24px 0 8px 16px;
    font-weight: 700;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid var(--sidebar-border);
    padding-top: 16px;
}

.nav-item.logout {
    color: var(--danger);
}

.nav-item.logout:hover {
    background-color: #FEE2E2;
}

/* 2. Main Content Area */
.main-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: 80px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.search-box {
    position: relative;
    width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-main);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 52, 111, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-bell {
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E2E8F0;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 16px; color: var(--text-dark); }
.user-role { font-size: 16px; color: var(--text-muted); }

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    display: flex;
    gap: 32px;
}

.view-section {
    display: none;
    flex: 1;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

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

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.view-title h2 { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.view-title p { color: var(--text-muted); font-size: 15px; }

.header-actions {
    display: flex;
    gap: 12px;
}

/* Dashboard Specifics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 52, 111, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card h3 { color: var(--text-muted); font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.stat-card .trend { font-size: 16px; font-weight: 600; }
.trend.up { color: var(--success); }
.trend.down { color: var(--danger); }

.dashboard-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

/* Progress Bars in Cards */
.project-progress-card {
    margin-bottom: 16px;
}

.pp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pp-header h4 { font-size: 15px; font-weight: 600; }
.progress-bg {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

/* Activity Feed */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 16px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EDF2F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-content p { font-size: 16px; color: var(--text-dark); margin-bottom: 4px; }
.activity-content span { font-size: 16px; color: var(--text-muted); }

/* Finance View */
.finance-table {
    width: 100%;
    border-collapse: collapse;
}

.finance-table th, .finance-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.finance-table th {
    color: var(--text-muted);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
}

.finance-table td {
    font-size: 16px;
    color: var(--text-dark);
}

/* FullCalendar Overrides for Light Theme */
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--border-color) !important; }
.fc-daygrid-day-number { color: var(--text-dark); }
.fc-col-header-cell-cushion { color: var(--text-muted); }
.fc-button-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    text-transform: capitalize !important;
}

/* Right Contextual Sidebar */
.right-sidebar {
    width: 320px;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.right-sidebar h3 { font-size: 18px; margin-bottom: 24px; }
.info-block { margin-bottom: 24px; }
.info-block label { font-size: 16px; color: var(--text-muted); text-transform: uppercase; display: block; margin-bottom: 8px; }
.info-block p { font-size: 16px; font-weight: 500; }

.map-placeholder {
    height: 200px;
    background: #E2E8F0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    border: 1px dashed #CBD5E1;
}

/* AI Chatbot Floating */
.ai-chatbot-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--text-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(26, 32, 44, 0.3);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    border: none;
}

.ai-chatbot-btn:hover { transform: scale(1.05); }

/* Leave Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 32, 44, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 450px;
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    transition: 0.3s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 16px;
    outline: none;
    font-family: inherit;
}
.form-input:focus { border-color: var(--primary); }

/* ============================================================
   DARK MODE — Global overrides for existing Tailwind utility
   classes, so we don't have to touch every element in the app.
   Activated by adding .dark class on <html>.
   ============================================================ */
html.dark {
    color-scheme: dark;
}

/* Body / page background */
html.dark body,
html.dark .bg-background,
html.dark .bg-surface,
html.dark .bg-surface-bright {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

/* Sidebar */
html.dark aside#sidebar,
html.dark .bg-slate-50 {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
html.dark aside#sidebar .text-slate-600,
html.dark aside#sidebar .text-slate-500,
html.dark aside#sidebar .text-slate-400 {
    color: #cbd5e1 !important;
}
html.dark aside#sidebar h1,
html.dark aside#sidebar p {
    color: #f1f5f9 !important;
}
html.dark .nav-item.active-tab,
html.dark .nav-item.bg-white {
    background-color: #334155 !important;
    color: #ffffff !important;
}
html.dark .nav-item:hover {
    background-color: #334155 !important;
}
html.dark .hover\:bg-\[\#ededf5\]:hover {
    background-color: #334155 !important;
}

/* Cards / containers (bg-white is most common card bg) */
html.dark .bg-white {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}
html.dark .bg-slate-100,
html.dark .bg-surface-container-low,
html.dark .bg-surface-container-lowest,
html.dark .bg-surface-container {
    background-color: #1e293b !important;
}
html.dark .bg-slate-200 {
    background-color: #334155 !important;
}
html.dark .bg-slate-50\/50,
html.dark .bg-slate-50 {
    background-color: #1e293b !important;
}

/* Borders */
html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-300,
html.dark .border-surface-container,
html.dark .divide-slate-100 > * + * {
    border-color: #334155 !important;
}
html.dark .border {
    border-color: #334155;
}

/* Text colors */
html.dark .text-slate-800,
html.dark .text-slate-900,
html.dark .text-on-surface,
html.dark .text-on-background {
    color: #f1f5f9 !important;
}
html.dark .text-slate-700 {
    color: #e2e8f0 !important;
}
html.dark .text-slate-600 {
    color: #cbd5e1 !important;
}
html.dark .text-slate-500,
html.dark .text-secondary {
    color: #94a3b8 !important;
}
html.dark .text-slate-400 {
    color: #64748b !important;
}

/* Inputs / selects / textareas */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="number"],
html.dark input[type="date"],
html.dark input[type="search"],
html.dark input[type="password"],
html.dark input[type="url"],
html.dark textarea,
html.dark select {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #64748b !important;
}
html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
    border-color: #2D3436 !important;
}

/* Tables */
html.dark table thead,
html.dark table th,
html.dark .bg-slate-50 thead {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
}
html.dark table tbody tr:hover,
html.dark table tr.hover\:bg-slate-50:hover {
    background-color: #334155 !important;
}
html.dark table td {
    border-color: #334155 !important;
}

/* Topbar */
html.dark header,
html.dark .topbar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Modals */
html.dark .modal-content {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

/* Custom scrollbar dark */
html.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Keep gradient hero cards fully colored — they already use white text */
/* (No override needed; .from-* / .to-* classes still work) */

/* Code/badges that should stay readable */
html.dark .bg-green-50 { background-color: rgba(16, 185, 129, 0.15) !important; }
html.dark .bg-red-50 { background-color: rgba(239, 68, 68, 0.15) !important; }
html.dark .bg-amber-50 { background-color: rgba(245, 158, 11, 0.15) !important; }
html.dark .bg-blue-50 { background-color: rgba(59, 130, 246, 0.15) !important; }
html.dark .bg-purple-50 { background-color: rgba(168, 85, 247, 0.15) !important; }
html.dark .bg-pink-50 { background-color: rgba(236, 72, 153, 0.15) !important; }
html.dark .bg-cyan-50 { background-color: rgba(6, 182, 212, 0.15) !important; }
html.dark .bg-orange-50 { background-color: rgba(249, 115, 22, 0.15) !important; }
html.dark .bg-yellow-50 { background-color: rgba(234, 179, 8, 0.15) !important; }

/* Mobile sidebar overlay needs more contrast in dark mode */
html.dark #sidebar-overlay {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* FullCalendar dark adjustments */
html.dark .fc-theme-standard td,
html.dark .fc-theme-standard th {
    border-color: #334155 !important;
}
html.dark .fc-daygrid-day-number,
html.dark .fc-col-header-cell-cushion {
    color: #e2e8f0 !important;
}
html.dark .fc {
    color: #e2e8f0;
}

/* Guide modal slide-up animation */
@keyframes guideSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-slide-up { animation: guideSlideUp 0.22s ease-out both; }

/* Guide prose styling for the modal body */
.guide-prose h4 {
    font-size: 16px;
    font-weight: 800;
    color: #2D3436;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.guide-prose h4:first-child { margin-top: 0; }
.guide-prose h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #2D3436;
    border-radius: 2px;
}
.guide-prose p { margin-bottom: 0.85rem; }
.guide-prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.guide-prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.guide-prose ul li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: #2D3436;
    border-radius: 50%;
}
.guide-prose strong { color: #2D3436; font-weight: 700; }
.guide-prose .guide-callout {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-left: 3px solid #2D3436;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 16px;
    color: #475569;
}
.guide-prose .guide-callout.warn { background: #fef3c7; border-left-color: #d97706; color: #78350f; }
.guide-prose .guide-callout.danger { background: #fee2e2; border-left-color: #dc2626; color: #7f1d1d; }
.guide-prose .guide-callout.success { background: #dcfce7; border-left-color: #16a34a; color: #14532d; }
.guide-prose .guide-kv {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 2fr;
    gap: 6px 16px;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 16px;
}
.guide-prose .guide-kv dt { font-weight: 700; color: #475569; }
.guide-prose .guide-kv dd { color: #0f172a; margin: 0; }
