/* NAB MAKEUP & SKINCARE CORNER — CRM Theme */

:root {
    --rose:       #ec4899;
    --rose-light: #fce7f3;
    --rose-mid:   #f9a8d4;
    --gold:       #c9a84c;
    --gold-light: #fef9ee;
    --white:      #ffffff;
    --off-white:  #fdf8f8;
    --sidebar-bg: #fff0f7;
    --text-dark:  #1a1a2e;
    --text-mid:   #6b7280;
    --text-light: #9ca3af;
    --border:     #fce7f3;
    --shadow:     0 1px 8px rgba(236,72,153,0.08);
}

* { box-sizing: border-box; }

body {
    background-color: var(--off-white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────── */
.nab-sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 240px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(236,72,153,0.03);
}

.nab-logo {
    font-family: 'Cormorant Garamond', 'Vollkorn', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rose);
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 8px;
    padding: 0 8px;
}

.nab-logo span {
    display: block;
    font-size: 0.65rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nab-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.nab-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.nab-nav a:hover {
    background: var(--rose-light);
    color: var(--rose);
}

.nab-nav a.active {
    background: var(--rose-light);
    color: var(--rose);
    font-weight: 600;
}

.nab-sidebar-footer {
    margin-top: auto;
    padding: 16px 8px 0;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-light);
}

.nab-back-crm-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-mid);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.7rem;
    border: 1px solid var(--border);
    background: white;
}

.nab-back-crm-btn:hover {
    background: var(--rose-light);
    color: var(--rose);
    border-color: var(--rose-mid);
}

.nab-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 12px;
    border: 1px solid transparent;
}

.nab-logout-btn:hover {
    background: #fff;
    color: var(--rose);
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(236,72,153,0.1);
}

/* ── Sidebar section labels ──────────────────── */
.nab-section-label {
    font-size: 9px;
    color: #d1a8c0;
    letter-spacing: 2px;
    padding: 0 16px 6px;
    text-transform: uppercase;
}

.nab-module-count {
    font-size: 10px;
    color: #d1a8c0;
    margin-top: 4px;
}

/* ── Admin nav entry ─────────────────────────── */
.nav-admin-link {
    margin-top: 2px;
}

/* ── AI Chat widget ──────────────────────────── */
.nab-chat-icon {
    font-size: 1.3rem;
}
.nab-chat-panel {
    height: 420px;
}
.nab-dot-1 { animation-delay: 0ms; }
.nab-dot-2 { animation-delay: 150ms; }
.nab-dot-3 { animation-delay: 300ms; }

/* ── Module gate nav styles ──────────────────── */
.nav-locked-link {
    opacity: 0.45;
}
.nav-locked-link:hover {
    background: transparent !important;
    color: var(--text-mid) !important;
}
.module-lock-badge {
    font-size: 8px;
    background: #fce7f3;
    color: #ec4899;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 4px;
    letter-spacing: 0.5px;
}

/* ── Main content ────────────────────────────── */
.nab-main {
    margin-left: 240px;
    padding: 32px;
    min-height: 100vh;
}

/* ── Cards ───────────────────────────────────── */
.nab-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.nab-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px 24px;
    transition: box-shadow 0.15s;
    text-decoration: none;
    display: block;
}

.nab-stat-card:hover {
    box-shadow: 0 4px 16px rgba(236,72,153,0.15);
}

.nab-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rose);
    margin-bottom: 6px;
}

.nab-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

/* ── Buttons ─────────────────────────────────── */
.btn-rose {
    background: var(--rose);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-rose:hover { background: #db2777; color: white; }
.btn-rose-lg { padding: 10px 20px; }

.btn-outline {
    background: transparent;
    color: var(--rose);
    border: 1px solid var(--rose-mid);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover { background: var(--rose-light); }

/* ── Table ───────────────────────────────────── */
.nab-table { width: 100%; border-collapse: collapse; }
.nab-table th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.nab-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #fdf2f8;
    font-size: 0.875rem;
    color: var(--text-dark);
}
.nab-table tr:last-child td { border-bottom: none; }
.nab-table tr:hover td { background: #fdf9fb; }

/* ── Badge ───────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-rose  { background: var(--rose-light); color: var(--rose); }
.badge-gold  { background: var(--gold-light); color: var(--gold); }
.badge-green { background: #f0fdf4; color: #16a34a; }

/* ── Page heading ────────────────────────────── */
.nab-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.nab-page-subtitle {
    font-size: 0.875rem;
    color: var(--text-mid);
    margin-bottom: 24px;
}

/* ── Form inputs ─────────────────────────────── */
.nab-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
    background: white;
}
.nab-input:focus { border-color: var(--rose-mid); }

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--rose-mid); border-radius: 4px; }

/* ── Sidebar utility classes ─────────────────── */
.nab-crm-tag {
    font-size: 0.65rem;
    color: var(--rose);
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0 8px;
    margin-bottom: 4px;
    display: block;
}

.nab-nav-icon {
    width: 16px;
    opacity: 0.7;
}

.nab-nav-icon-whatsapp {
    width: 16px;
    color: #25d366;
}

.nab-status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
}

.nab-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

/* ── Mobile responsive ───────────────────────── */
@media (max-width: 768px) {
    .nab-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
        z-index: 100;
        width: 260px;
    }
    .nab-sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0,0,0,0.18);
    }
    .nab-main {
        margin-left: 0;
        padding: 16px;
    }
    .nab-mobile-bar {
        display: flex;
    }
    .nab-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 99;
    }
}

@media (min-width: 769px) {
    .nab-mobile-bar { display: none; }
    .nab-overlay    { display: none !important; }
}

.nab-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
    margin: -16px -16px 16px -16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nab-hamburger {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.nab-hamburger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--rose);
    border-radius: 2px;
    transition: all 0.2s;
}

.nab-mobile-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--rose);
}

/* ── Flash message classes ───────────────────── */
.flash-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.flash-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}
