/* ========================================
   STYLE.CSS - AbsenApp Web (Design System)
   ======================================== */

:root {
    /* Brand */
    --ink-900: #0B1220;
    --ink-800: #16213A;
    --ink-700: #1E293B;

    --brass-600: #9C7A2E;
    --brass-500: #B8944A;
    --brass-100: #F5EFDE;

    /* Neutrals */
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;

    /* Surfaces */
    --bg: #F6F3EC;
    --surface: #FFFFFF;
    --border: #E9E4D8;
    --text: #0F172A;
    --text-muted: #64748B;
    --text-faint: #94A3B8;

    /* Semantic */
    --success-700: #15803D;
    --success-100: #DCFCE7;
    --warning-700: #B45309;
    --warning-100: #FEF3C7;
    --danger-700: #B91C1C;
    --danger-100: #FEE2E2;
    --info-700: #1D4ED8;
    --info-100: #DBEAFE;
    --teal-700: #0F766E;
    --violet-700: #6D28D9;
    --coral-700: #C2410C;

    /* Scale */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);

    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --transition: all 0.15s ease;
}

[data-theme="dark"] {
    --success-700: #4ADE80;
    --warning-700: #FBBF24;
    --danger-700: #F87171;
    --info-700: #60A5FA;
    --teal-700: #2DD4BF;
    --violet-700: #A78BFA;
    --coral-700: #FB923C;

    --bg: #0A0D14;
    --surface: #19212F;
    --border: #313D52;
    --text: #EEF1F6;
    --text-muted: #A6B1C4;
    --text-faint: #7C8AA0;

    --brass-100: #26210F;

    --success-100: #0F2A1A;
    --warning-100: #2E2109;
    --danger-100: #2E1414;
    --info-100: #14213D;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    font-family: var(--font-base);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background 0.2s ease, color 0.2s ease;
}

.app {
    width: 100%;
    min-height: 100vh;
}

/* ========== EYEBROW LABEL (signature element) ========== */
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ========== LEGACY GENERIC ELEMENTS (kept for compatibility) ========== */
.phone {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: auto;
    background: var(--surface);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.header {
    height: 64px;
    background: var(--ink-900);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
}

.content {
    padding: 24px;
}

.btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--ink-900);
    color: white;
    font-family: var(--font-base);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--ink-700);
}

.input {
    width: 100%;
    height: 46px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0 14px;
    margin-top: 6px;
    margin-bottom: 16px;
    outline: none;
    font-family: var(--font-base);
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg);
}

.input:focus {
    border-color: var(--ink-900);
    background: var(--surface);
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
}

/* ========================================
   BOTTOM NAV
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.05);
    z-index: 40;
    overflow-x: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    min-width: 58px;
    flex-shrink: 0;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.nav-item:hover {
    opacity: 0.75;
}

.nav-color-home { color: var(--info-700); }
.nav-color-recap { color: var(--teal-700); }
.nav-color-recap-company { color: var(--violet-700); }
.nav-color-member { color: var(--coral-700); }
.nav-color-calendar { color: var(--danger-700); }
.nav-color-map { color: var(--success-700); }
.nav-color-setting { color: var(--brass-600); }

.nav-item.active {
    color: var(--ink-900) !important;
}

[data-theme="dark"] .nav-item.active {
    color: var(--brass-500) !important;
}

.nav-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
}

.nav-item.active .nav-label {
    color: var(--brass-600);
}

[data-theme="dark"] .nav-item.active .nav-label {
    color: var(--brass-500);
}

/* ========== ICON COLOR FIX (stroke inherit) ========== */
.stat-icon svg,
.notif-bell-link svg,
.quick-action-leave svg {
    stroke: currentColor;
}

/* ========== FONT IMPORT ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');