/* ===================================================================
   Skipp — Customer app shell
   Shared by all customer/*.php pages via customer/includes/*.php
   =================================================================== */

:root {
    --navy: #171B36;
    --navy-dark: #10132A;
    --sidebar-bg: #10132A;
    --blue: #2563EB;
    --light-blue: #DBEAFE;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --bg: #F3F4F6;
    --field-bg: #F9FAFB;
    --green: #10B981;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
}

.app-layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 26px; }
.sidebar-brand .logo-box {
    width: 38px; height: 38px; border-radius: 10px; background: var(--blue);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-brand .label { font-size: 12.5px; font-weight: 600; color: #9CA3AF; line-height: 1.3; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
    color: #C7CAD9; text-decoration: none; font-size: 14.5px; font-weight: 600;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.05); }
.sidebar-nav a.active { background: rgba(37,99,235,0.18); color: #fff; }
.sidebar-nav a svg { flex-shrink: 0; }

.sidebar-tip {
    background: rgba(255,255,255,0.06); border-radius: 12px; padding: 14px 16px;
    font-size: 12.5px; color: #C7CAD9; line-height: 1.4;
}
.sidebar-tip strong { color: #fff; display: block; margin-bottom: 2px; }

/* ---------- Main column ---------- */
.main-column { flex-grow: 1; min-width: 0; }
.main-inner { max-width: 1000px; margin: 0 auto; padding: 28px 32px 60px; }

/* ---------- Top header (brand + bell + lang) ---------- */
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 16px; }
.app-header .brand-title { display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 900; color: var(--blue); margin: 0; line-height: 1; }
.app-header .tagline { color: var(--text-muted); font-size: 14px; margin: 6px 0 0; }
.app-header-right { display: flex; align-items: center; gap: 10px; }

.bell-btn {
    width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; position: relative; color: var(--navy); text-decoration: none;
}
.bell-btn .dot { position: absolute; top: 10px; right: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.lang-switch { display: flex; background: #F3F4F6; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch a { width: 34px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--text-muted); text-decoration: none; }
.lang-switch a.active { background: var(--navy); color: #fff; }

/* ===================================================================
   Mobile View Overrides (Screens <= 820px)
   =================================================================== */
@media (max-width: 820px) {
    .app-layout { flex-direction: column; }
    
    .main-inner { padding: 20px 16px 90px; } /* Extra bottom padding so content doesn't get covered by nav */

    /* Header styling matching design */
    .app-header { margin-bottom: 20px; align-items: center; }
    .app-header .brand-title { font-size: 24px; }
    .app-header .tagline { font-size: 13.5px; }

    /* Bottom Fixed Navigation Bar */
    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: 68px;
        background: #ffffff;
        border-top: 1px solid var(--border);
        flex-direction: row;
        padding: 0 8px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    .sidebar-brand, 
    .sidebar-tip { display: none !important; }

    .sidebar-nav {
        flex-direction: row;
        width: 100%;
        height: 100%;
        justify-content: space-around;
        align-items: center;
        gap: 0;
    }

    .sidebar-nav a {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 6px 0;
        height: 52px;
        border-radius: 16px;
        color: #6B7280;
        font-size: 11px;
        font-weight: 600;
        text-align: center;
    }

    .sidebar-nav a:hover { background: transparent; }

    /* Active bottom tab highlight button style */
    .sidebar-nav a.active {
        background: #DBEAFE;
        color: var(--blue);
    }
    .sidebar-nav a.active svg {
        stroke: var(--blue);
    }

    .sidebar-nav a .label-text {
        display: block !important;
        font-size: 11px;
    }
}