@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --app-font: 'Urbanist', 'Inter', system-ui, -apple-system, sans-serif;
    --app-bg: #F8FAFC;               /* Modern clean slate background */
    --app-card-bg: #fffde7;          /* Soft pale yellow card & table background */
    --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-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;

    /* ── 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;
    min-height: 100vh;
    background-color: var(--app-bg);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: var(--app-bg);
}

.app-content-body {
    padding: 24px;
    flex: 1;
    background-color: var(--app-bg);
    min-height: calc(100vh - 60px);
}



/* App Shell */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.app-sidebar {
    width: 250px;
    background-color: #FFFFFF;
    border-right: 1px solid var(--app-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.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: 8px;
    padding: 5px 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:hover {
    background-color: #F8FAFC;
    color: #1E293B;
}

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

.app-user-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: #E0E7FF;
    color: #3730A3;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.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;
}

.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: 24px;
    flex: 1;
    background-color: var(--app-bg);
    min-height: calc(100vh - 60px);
}

/* 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 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    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: 20px;
}

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

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

.app-kpi-val {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
}

/* 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;
}

/* 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;
    min-height: 100vh;
    width: 100%;
    background-color: var(--app-card-bg);
    font-family: var(--app-font);
}

.auth-left-hero {
    flex: 1;
    background: linear-gradient(145deg, #F8FAFC 0%, #EEF2FF 100%);
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--app-border);
}

.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 {
    max-width: 520px;
    margin: 40px 0;
}

.auth-hero-icon-glow {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.auth-hero-heading {
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 16px;
}

.auth-hero-subtext {
    font-size: 15px;
    color: var(--app-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.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;
}

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

