@font-face { font-family: 'FuturaPT'; src: url('../fonts/FuturaCyrillicLight.ttf') format('truetype'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'FuturaPT'; src: url('../fonts/FuturaCyrillicBook.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'FuturaPT'; src: url('../fonts/FuturaCyrillicMedium.ttf') format('truetype'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'FuturaPT'; src: url('../fonts/FuturaCyrillicDemi.ttf') format('truetype'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'FuturaPT'; src: url('../fonts/FuturaCyrillicBold.ttf') format('truetype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'FuturaPT'; src: url('../fonts/FuturaCyrillicExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; }
@font-face { font-family: 'FuturaPT'; src: url('../fonts/FuturaCyrillicHeavy.ttf') format('truetype'); font-weight: 900; font-style: normal; }
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --app-font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --app-bg: #F8FAFC;               /* Modern clean slate background */
    --app-card-bg: #FAF9F6;          /* Antigravity warm off-white background for cards */
    --app-primary: #2563EB;          /* Core brand blue */
    --app-primary-hover: #1D4ED8;    /* Brand blue hover */
    --app-secondary: #64748B;        /* Slate secondary text */
    --app-dark: #0F172A;             /* Slate dark headings */
    --app-success: #10B981;          /* Emerald success */
    --app-danger: #EF4444;           /* Coral red danger */
    --app-warning: #F59E0B;          /* Amber warning */
    --app-warning-bg: #FEF3C7;       /* Amber light tint */
    --app-warning-text: #D97706;     /* Amber text */
    --app-info: #0284C7;             /* Sky blue info */
    --app-cyan: #51D1FC;             /* Cyan holiday badge */
    --app-purple: #8B5CF6;           /* Violet accent */
    --app-text: #0F172A;             /* Slate 900 primary text */
    --app-text-muted: #64748B;       /* Slate 500 secondary text */
    --app-border: #E2E8F0;           /* Slate 200 clean border */
    --app-active-nav: #EEF2FF;       /* Indigo 50 active nav tint */
    --app-active-text: #2563EB;

    /* ── Extended Slate & Neutral Scale ── */
    --app-bg-subtle: #F1F5F9;        /* Slate 100 subtle background / table header / hover */
    --app-border-subtle: #CBD5E1;    /* Slate 300 secondary input & checkbox border */
    --app-icon-muted: #94A3B8;       /* Slate 400 subtle icon / chevron / placeholder */
    --app-text-secondary: #475569;   /* Slate 600 secondary text */
    --app-text-emphasis: #334155;    /* Slate 700 emphasis text */
    --app-dark-surface: #1E293B;     /* Slate 800 dark card surface / brand text */

    /* ── Extended Primary Blue Scale ── */
    --app-primary-light: #3B82F6;    /* Blue 500 lighter brand accent */
    --app-primary-subtle: #EFF6FF;   /* Blue 50 selection / active row tint */
    --app-primary-tint: #DBEAFE;     /* Blue 100 chip / badge background */
    --app-primary-dark: #1E40AF;     /* Blue 800 high-contrast badge text */

    /* ── Extended Semantic Tints ── */
    --app-danger-subtle: #FEF2F2;    /* Red 50 absence / non-working cell tint */
    --app-danger-tint: #FEE2E2;      /* Red 100 absence stripe / border */
    --app-danger-dark: #DC2626;      /* Red 600 high-contrast badge text */
    --app-warning-dark: #92400E;     /* Amber 800 high-contrast badge text */

    /* ── Standardized Typography Scale ── */
    --font-h1: 22px;
    --font-h2: 18px;
    --font-h3: 16px;
    --font-kpi: 24px;
    --font-body: 13.5px;
    --font-table: 13px;
    --font-small: 12px;
    --font-badge: 11.5px;
    --font-micro: 10.5px;
}

body {
    font-family: var(--app-font);
    background-color: var(--app-bg);
    color: var(--app-text);
    font-size: var(--font-body);
    margin: 0;
    padding: 0;
}



/* Prevent accidental text selection on headers, tabs, buttons, and UI controls */
h1, h2, h3, h4, h5, h6,
.app-tabs, .app-tab,
.app-sidebar, .app-brand, .app-nav-item, .app-nav-group-title,
.app-topbar, .app-breadcrumbs, .app-section-header,
.btn, button, .badge, .shako-label, .app-label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/* App Shell */
.app-shell {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--app-bg);
    position: relative;
}

/* Sidebar Navigation */
.app-sidebar {
    width: 250px;
    height: 100vh;
    height: 100dvh;
    background-color: #FFFFFF;
    border-right: 1px solid var(--app-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.app-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 100;
    color: #1E293B;
    border-bottom: 1px solid #F1F5F9;
}

.app-brand span {
    font-size: 10px;
    font-weight: 100;
    letter-spacing: 0.08em;
}


.app-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.app-nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.app-nav-group {
    margin-bottom: 10px;
}

.app-nav-group-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
    padding: 4px 10px;
}

.app-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 1px;
    transition: all 0.15s ease;
}

.app-nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.app-nav-item:hover {
    background-color: #F8FAFC;
    color: #1E293B;
}

.app-nav-item.active {
    background-color: #EEF2FF;
    color: #3730A3;
    font-weight: 600;
}

.app-user-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.15s ease-in-out;
    user-select: none;
}

.app-user-footer:hover,
.app-user-footer.active {
    background-color: #F8FAFC;
}

.app-avatar-badge {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    overflow: hidden;
    background-color: #BFDBFE;
    color: #1D4ED8;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

img.app-avatar-badge {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* User Profile Popup Menu */
.user-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    background: transparent;
}

.user-popup-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    width: 255px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 20px 30px -5px rgba(15, 23, 42, 0.25), 0 10px 15px -5px rgba(15, 23, 42, 0.15);
    padding: 8px 0;
    z-index: 1060;
    animation: userPopupFadeIn 0.15s ease-out;
}

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

.user-popup-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #1E293B;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.12s ease-in-out;
    user-select: none;
}

.user-popup-item:hover {
    background-color: #F8FAFC;
    color: #0F172A;
}

.user-popup-item.text-danger-hover:hover {
    background-color: #FEF2F2;
    color: #DC2626;
}
.user-popup-item.text-danger-hover:hover .user-popup-icon {
    color: #DC2626;
}

.user-popup-icon {
    color: #2563EB;
    font-size: 15px;
    width: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.user-popup-badge-text {
    font-size: 12px;
    color: #2563EB;
    font-weight: 500;
}

.user-popup-divider {
    height: 1px;
    background-color: #F1F5F9;
    margin: 6px 0;
}

.user-popup-section-header {
    padding: 6px 16px 4px 16px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-popup-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #1E293B;
}

.user-popup-item-sub {
    font-size: 10.5px;
    color: #64748B;
    line-height: 1.3;
    margin-top: 1px;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--app-bg);
}

.app-topbar {
    height: 60px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-breadcrumbs {
    font-size: 13px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-warning-pill {
    background-color: var(--app-warning-bg);
    color: var(--app-warning-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-content-body {
    padding: 16px 24px 24px;
    flex: 1;
    background-color: var(--app-bg);
}

/* Responsive Mobile Offcanvas Drawer & Layout */
@media (max-width: 991.98px) {
    .app-sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background-color: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1040;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        z-index: 1050;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .app-sidebar.show,
    .app-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main {
        width: 100%;
        max-width: 100vw;
    }

    .app-topbar {
        padding: 0 12px;
        height: 56px;
    }

    .app-topbar-actions {
        gap: 6px;
    }

    .app-content-body {
        padding: 12px 14px 24px;
    }

    .user-popup-menu {
        left: 12px;
        transform: none;
        bottom: calc(100% + 4px);
        width: calc(100% - 24px);
    }
}

/* Cards & Layout Grid */
.app-card {
    background-color: var(--app-card-bg);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.1), 0 3px 6px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
}

.app-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.app-page-breadcrumb {
    font-size: var(--font-small);
    color: var(--app-text-muted);
    margin-bottom: 4px;
}

.app-page-title {
    font-size: var(--font-h1);
    font-weight: 700;
    color: var(--app-dark);
    margin: 0;
}

/* ── Typography Scale Classes ── */
.text-h1 { font-size: var(--font-h1) !important; font-weight: 700; }
.text-h2 { font-size: var(--font-h2) !important; font-weight: 700; }
.text-h3 { font-size: var(--font-h3) !important; font-weight: 600; }
.text-kpi { font-size: var(--font-kpi) !important; font-weight: 700; }
.text-body { font-size: var(--font-body) !important; }
.text-table { font-size: var(--font-table) !important; }
.text-small { font-size: var(--font-small) !important; }
.text-badge { font-size: var(--font-badge) !important; }
.text-micro { font-size: var(--font-micro) !important; }

/* ── Table Styling ── */
.app-table {
    font-size: var(--font-table);
    width: 100%;
    margin-bottom: 0;
}

.app-table th {
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--app-text-muted);
    background-color: rgba(0, 0, 0, 0.025);
    border-bottom: 1px solid var(--app-border);
    padding: 10px 14px;
}

.app-table td {
    font-size: var(--font-table);
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--app-border);
}

.app-table td .badge,
.app-table td a,
.app-table td span {
    font-size: var(--font-table);
}

/* ── Schedule Card Classes ── */
.schedule-list {
    font-size: var(--font-table);
    line-height: 1.7;
}

.schedule-day-label {
    font-size: var(--font-table);
    font-weight: 700;
    color: var(--app-dark);
}

.schedule-time-slot {
    font-size: var(--font-table);
    width: 95px;
    text-align: center;
    color: var(--app-text-muted);
}

.app-section-header {
    border-left: 3px solid var(--app-primary);
    padding-left: 10px;
    color: #1E293B;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    margin-top: 4px;
}


/* Onboarding Wizard */
.app-wizard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.app-wizard-steps {
    border-right: 1px solid #F1F5F9;
    padding-right: 16px;
}

.app-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #64748B;
    cursor: pointer;
    margin-bottom: 2px;
}

.app-step-item.active {
    background-color: #EEF2FF;
    color: #1E293B;
    font-weight: 600;
}

.app-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
}


.app-step-item.active .app-step-num {
    background-color: #2563EB;
    color: white;
}

/* KPI Cards Row */
.app-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.app-kpi-card {
    background: white;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    padding: 10px 14px;
}

.app-kpi-title {
    font-size: 11.5px;
    color: #64748B;
    margin-bottom: 3px;
}

.app-kpi-val {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

/* Tabs */
.app-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--app-border);
    margin-bottom: 20px;
}

.app-tab {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.app-tab.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
    border-radius: 6px 6px 0 0;
    background-color: #f8fafc;
}

/* Forms */
.app-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.app-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.app-input {
    width: 100%;
    height: 36px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    background-color: #FFFFFF;
    color: #0F172A;
    transition: all 0.15s ease-in-out;
}

.input-group > .app-input {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.app-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}


.app-btn-primary {
    background-color: #2563EB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-btn-primary:hover {
    background-color: #1D4ED8;
}

.app-btn-secondary {
    background-color: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================
   Auth / Login Split Screen System
   ========================================== */
.auth-split-container {
    display: flex;
    flex-direction: row-reverse;
    min-height: 100vh;
    width: 100%;
    background-color: var(--app-card-bg);
    font-family: var(--app-font);
}

.auth-left-hero {
    flex: 1;
    background-color: #3b82f6; /* Solid blue */
    position: relative;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
    border-left: 1px solid var(--app-border);
    overflow: hidden;
}

.auth-left-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background-image: url('../images/logo.png');
    background-size: 60px;
    background-repeat: repeat;
    opacity: 0.08; /* Subtle logo pattern */
    transform: rotate(-15deg);
    z-index: 0;
}

.auth-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.auth-brand-title {
    font-size: 13px;
    font-weight: 100;
    letter-spacing: 0.1em;
    color: var(--app-text);
    text-transform: uppercase;
}

.auth-hero-body {
    position: relative;
    z-index: 1;
    text-align: left;
    margin-bottom: 20px;
}

.auth-hero-heading {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.auth-hero-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.5;
    max-width: 450px;
    margin-bottom: 0;
}

.auth-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.badge-item {
    background: var(--app-card-bg);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    border: 1px solid var(--app-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.auth-testimonial-card {
    background: var(--app-card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--app-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-size: 14px;
    color: #334155;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--app-primary);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.author-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
}

.author-role {
    font-size: 12px;
    color: var(--app-text-muted);
}

.auth-left-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #94A3B8;
}

.auth-left-footer a {
    color: var(--app-text-muted);
    text-decoration: none;
}

.auth-left-footer a:hover {
    color: var(--app-primary);
}

.auth-right-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--app-text-muted);
    margin-bottom: 28px;
}

.social-login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: var(--app-card-bg);
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--app-border);
}

.auth-divider span {
    position: relative;
    background: var(--app-card-bg);
    padding: 0 12px;
    font-size: 12.5px;
    color: #94A3B8;
}

.form-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 14px;
    color: #0F172A;
    outline: none;
    transition: border-color 0.2s;
}

.form-control-custom:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 15px;
}

.has-icon {
    padding-left: 40px;
}

.eye-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
}

.forgot-link {
    font-size: 12.5px;
    color: var(--app-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--app-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.auth-submit-btn:hover {
    background: var(--app-primary-hover);
}

.auth-switch-mode {
    margin-top: 24px;
    text-align: center;
    font-size: 13.5px;
    color: var(--app-text-muted);
}

.switch-link {
    background: none;
    border: none;
    color: var(--app-primary);
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
}

.auth-lang-selector {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 12.5px;
}

.lang-select {
    border: none;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 12.5px;
    outline: none;
    cursor: pointer;
}

/* ==========================================================================
   Enterprise Auth Alert Feedback
   ========================================================================== */
.auth-alert-enterprise {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    animation: authAlertSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authAlertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert-enterprise.auth-alert-danger {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.auth-alert-enterprise.auth-alert-success {
    background-color: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.auth-alert-enterprise.auth-alert-info {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.auth-alert-icon {
    font-size: 17px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-alert-danger .auth-alert-icon {
    color: #DC2626;
}

.auth-alert-success .auth-alert-icon {
    color: #16A34A;
}

.auth-alert-info .auth-alert-icon {
    color: #2563EB;
}

.auth-alert-content {
    flex: 1;
    min-width: 0;
}

.auth-alert-title {
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.auth-alert-danger .auth-alert-title {
    color: #991B1B;
}

.auth-alert-success .auth-alert-title {
    color: #14532D;
}

.auth-alert-info .auth-alert-title {
    color: #1E3A8A;
}

.auth-alert-text {
    font-size: 12.5px;
    opacity: 0.95;
    word-break: break-word;
}

.auth-alert-close {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.45;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    line-height: 1;
    margin-left: 6px;
    transition: opacity 0.15s ease, transform 0.15s ease;
    align-self: flex-start;
}

.auth-alert-close:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.btn-link-clean {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}


@media (max-width: 900px) {
    .auth-left-hero {
        display: none;
    }
}

/* ==========================================================================
   Standard App Dropdowns, Filter Pills & Selects (JornAda Style)
   ========================================================================== */

.app-dropdown {
    position: relative;
    display: inline-block;
}

/* Trigger pill button */
.app-dropdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: #FFFFFF;
    color: #334155;
    border: 1px solid #CBD5E1;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
    outline: none;
    user-select: none;
}

.app-dropdown-pill:hover {
    background-color: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
}

.app-dropdown-pill:focus,
.app-dropdown-pill.active {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.app-dropdown-pill .pill-icon {
    color: #64748B;
    font-size: 13px;
}

.app-dropdown-pill .pill-label {
    color: #64748B;
}

.app-dropdown-pill .pill-value {
    color: #0F172A;
    font-weight: 600;
}

.app-dropdown-pill .pill-chevron {
    color: #94A3B8;
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.app-dropdown.open .pill-chevron {
    transform: rotate(180deg);
}

/* Trigger form field button */
.app-dropdown-form-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 38px;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13.5px;
    color: #0F172A;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease-in-out;
    outline: none;
    user-select: none;
}

.input-group > .app-dropdown {
    flex: 1 1 auto;
    width: 1% !important;
}

.input-group > .app-dropdown .app-dropdown-form-trigger {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: none !important;
}

.app-dropdown-form-trigger:hover:not(:disabled) {
    border-color: #94A3B8;
    background-color: #F8FAFC;
}

.app-dropdown-form-trigger:focus,
.app-dropdown-form-trigger.active,
.app-dropdown.open .app-dropdown-form-trigger {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    background-color: #FFFFFF !important;
}

.app-dropdown-form-trigger .pill-chevron {
    color: #64748B;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.app-dropdown.open .app-dropdown-form-trigger .pill-chevron {
    transform: rotate(180deg);
}

/* Backdrop for closing dropdown when clicking outside */
.app-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1070;
    background: transparent;
}

/* Popover card menu */
.app-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1080;
    width: 280px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.15);
    padding: 12px;
    animation: appDropdownFadeIn 0.15s ease-out;
}

.app-dropdown-menu.align-right {
    left: auto;
    right: 0;
}

@keyframes appDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title inside dropdown */
.app-dropdown-header {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

/* Preview box at top of dropdown */
.app-dropdown-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

/* List container */
.app-dropdown-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background-color: #FFFFFF;
    max-height: 250px;
    overflow-y: auto;
}

/* Option item */
.app-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.12s ease;
    user-select: none;
}

.app-dropdown-item:hover {
    background-color: #F8FAFC;
    color: #0F172A;
}

.app-dropdown-item.active {
    background-color: #EFF6FF;
    color: #2563EB;
    font-weight: 600;
}

.app-dropdown-item .check-icon {
    color: #10B981;
    font-size: 12px;
}

/* Standard Universal App Select */
.app-select,
select.app-select,
select.form-select:not(.lang-select):not(.border-0) {
    width: 100%;
    height: 36px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 32px 0 12px;
    font-size: 13px;
    background-color: #FFFFFF;
    color: #0F172A;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px 10px !important;
    transition: all 0.15s ease-in-out;
}

.app-select:focus,
select.app-select:focus,
select.form-select:not(.lang-select):not(.border-0):focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

/* ==========================================================================
   Annual Calendar System (JornAda Standard)
   ========================================================================== */
.annual-calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px 18px;
}

@media (max-width: 1400px) {
    .annual-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .annual-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .annual-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .annual-calendar-grid {
        grid-template-columns: 1fr;
    }
}

.month-block {
    display: flex;
    flex-direction: column;
}

.month-title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
}

.month-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.month-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    background: #FFFFFF;
}

.day-cell {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 500;
    color: #334155;
    border-right: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.day-cell:nth-child(7n) {
    border-right: none;
}

.day-cell:nth-child(n+36) {
    border-bottom: none;
}

.day-cell:hover:not(.empty-cell) {
    background-color: #F1F5F9;
    font-weight: 700;
}

.day-cell.empty-cell {
    background-color: #FFFFFF;
    cursor: default;
}

.day-cell.highlighted {
    background-color: #E0F2FE !important;
    color: #0369A1 !important;
    font-weight: 600;
}

.day-cell.highlighted:hover {
    background-color: #BAE6FD !important;
}

.day-cell.today {
    font-weight: 800;
    color: #2563EB;
    position: relative;
}

.day-cell.today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #2563EB;
}

/* Floating AI Button */
.floating-ai-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 999;
}

.floating-ai-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Slate Text Utilities */
.text-slate-500 { color: var(--app-text-muted) !important; }
.text-slate-600 { color: var(--app-text-secondary) !important; }
.text-slate-700 { color: var(--app-text-emphasis) !important; }
.text-slate-800 { color: var(--app-dark-surface) !important; }
.text-slate-900 { color: var(--app-dark) !important; }

/* Worker / User Profile Name Links */
.worker-name-link {
    color: var(--app-primary) !important;
    transition: color 0.15s ease-in-out;
    cursor: pointer;
}
.worker-name-link:hover {
    color: var(--app-primary-hover) !important;
    text-decoration: underline !important;
}

/* Universal circular avatar frames across the entire platform */
.app-avatar-badge,
.author-avatar,
.avatar-sm,
.avatar-md,
.avatar-lg,
.avatar-xl,
[class*="avatar"] {
    border-radius: 50% !important;
}

.app-avatar-badge img,
.author-avatar img,
.avatar-sm img,
.avatar-md img,
.avatar-lg img,
.avatar-xl img,
img[class*="avatar"],
[class*="avatar"] img {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Standardized Badges & Table Status Indicators */
.badge {
    font-size: var(--font-small, 12px);
    font-weight: 500;
}

.table .badge,
.table td .badge {
    font-size: var(--font-small, 12px) !important;
    font-weight: 500;
    padding: 0.35em 0.75em;
    line-height: 1.2;
}

/* Tabler Thin Icons (1px stroke / 200 weight) */
.ti,
[class^="ti-"],
[class*=" ti-"] {
    font-family: "tabler-icons-200" !important;
    font-weight: 400;
    font-style: normal;
}

svg.icon-tabler {
    stroke-width: 1 !important;
}

.dropdown-menu {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
}



.day-cell.holiday {
    background-color: #FEF3C7 !important;
    color: #B45309 !important;
    font-weight: 600;
}
.day-cell.holiday:hover {
    background-color: #FDE68A !important;
}

.day-cell.vacation {
    background-color: #DCFCE7 !important;
    color: #15803D !important;
    font-weight: 600;
}
.day-cell.vacation:hover {
    background-color: #BBF7D0 !important;
}

.app-kpi-title i { font-size: 15px; }
.app-kpi-title { display: flex; align-items: center; }
