:root {
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --sidebar-bg: #0a2d26;
    --topbar-bg: #0a2d26;
    --gold: #c8a97e;
    --gold-hover: #b8956a;
}

html, body {
    font-family: "Poppins", sans-serif;
}


/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
#topbar {
    background: var(--topbar-bg);
    height: var(--topbar-height);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    z-index: 1045;
}

.topbar-toggler {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.topbar-toggler:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.topbar-icon-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.topbar-icon-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.topbar-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--gold);
    color: #1a1a1a;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatar circle */
.topbar-avatar {
    background: rgba(200,169,126,0.15);
    border: 1.5px solid rgba(200,169,126,0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.topbar-avatar:hover {
    background: rgba(200,169,126,0.25);
    border-color: var(--gold);
}

.avatar-initials {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

/* Gold CTA button */
.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1a1a;
    font-weight: 600;
    border-radius: 8px;
}
.btn-gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #1a1a1a;
}


/* ══════════════════════════════════════════
   TOPBAR DROPDOWN
══════════════════════════════════════════ */

/* Remove generic light dropdown styling */
.dropdown-menu {
    border-radius: 10px;
    min-width: 200px;
}

/* Scoped dark theme for topbar dropdown only */
.topbar-dropdown {
    background: #0f3830;
    border: 1px solid rgba(200,169,126,0.2);
    border-radius: 12px;
    min-width: 230px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.topbar-dropdown .dropdown-header {
    padding: 10px 10px 12px;
    color: inherit;
}

.dropdown-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: rgba(200,169,126,0.15);
    border: 1.5px solid rgba(200,169,126,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
}

.dropdown-user-name {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.dropdown-user-email {
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    line-height: 1.3;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-dropdown .dropdown-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 4px 0;
}

.topbar-dropdown .dropdown-item {
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
}

.topbar-dropdown .dropdown-item i {
    color: rgba(200,169,126,0.7);
    font-size: 0.95rem;
    transition: color 0.15s;
}

.topbar-dropdown .dropdown-item:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.topbar-dropdown .dropdown-item:hover i {
    color: var(--gold);
}

.topbar-dropdown .dropdown-item-logout {
    color: rgba(255,100,100,0.8);
}

.topbar-dropdown .dropdown-item-logout i {
    color: rgba(255,100,100,0.7);
}

.topbar-dropdown .dropdown-item-logout:hover {
    background: rgba(255,80,80,0.1);
    color: #ff6b6b;
}

.topbar-dropdown .dropdown-item-logout:hover i {
    color: #ff6b6b;
}


/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
#sidebar {
    background: var(--sidebar-bg);
    width: var(--sidebar-width);
    border-right: 1px solid rgba(255,255,255,0.07);
}

@media (min-width: 992px) {
    #sidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        bottom: 0;
        height: calc(100vh - var(--topbar-height));
        transform: none !important;
        visibility: visible !important;
        z-index: 1040;
    }

    .dashboard-wrapper {
        margin-left: var(--sidebar-width);
    }
}

/* Sidebar nav links */
#sidebar .nav-link {
    color: rgba(255,255,255,0.65);
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.55rem 0.9rem;
    transition: background 0.2s, color 0.2s;
}
#sidebar .nav-link:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}
#sidebar .nav-link.active {
    background: var(--gold);
    color: #1a1a1a;
    font-weight: 600;
}
#sidebar .nav-link.active i {
    color: #1a1a1a;
}
#sidebar .nav-link i {
    color: rgba(200,169,126,0.6);
    transition: color 0.2s;
}
#sidebar .nav-link:hover i {
    color: var(--gold);
}

/* Sidebar section labels */
.sidebar-label {
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 0.9rem 0.35rem;
}

#sidebar .nav-link-logout {
    color: rgba(255,100,100,0.75);
}
#sidebar .nav-link-logout:hover {
    background: rgba(255,80,80,0.1);
    color: #ff6b6b;
}
#sidebar .nav-link-logout i {
    color: rgba(255,100,100,0.7);
}
#sidebar .nav-link-logout:hover i {
    color: #ff6b6b;
}


/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.dashboard-wrapper {
    margin-top: var(--topbar-height);
    min-height: calc(100vh - var(--topbar-height));
    background: #f7f6f2;
}


/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */
html, body {
    background: #0a2d26;
}

.btn-primary {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #1a1a1a !important;
    border-radius: 50px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--gold-hover) !important;
    border-color: var(--gold-hover) !important;
    color: #1a1a1a !important;
}

/* ══════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════ */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.bg-icon-blue   { background: rgba(0,100,148,0.1);  color: #006494; }
.bg-icon-green  { background: rgba(67,122,34,0.1);  color: #437a22; }
.bg-icon-gold   { background: rgba(200,169,126,0.15); color: #b8956a; }
.bg-icon-purple { background: rgba(122,57,187,0.1); color: #7a39bb; }

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
    margin-bottom: 6px;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}
.stat-change.positive { color: #437a22; }
.stat-change.negative { color: #a12c7b; }
.stat-change.neutral  { color: #888; }


/* ══════════════════════════════════════════
   DASHBOARD CARDS
══════════════════════════════════════════ */
.dashboard-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dashboard-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.dashboard-card-body {
    padding: 1.25rem;
}

.filter-select {
    border-radius: 8px;
    border-color: rgba(0,0,0,0.1);
    font-size: 0.8rem;
    color: #444;
    min-width: 120px;
}


/* ══════════════════════════════════════════
   LEAD / BOOKING LIST
══════════════════════════════════════════ */
.lead-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lead-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.15s;
}
.lead-list-item:last-child { border-bottom: none; }
.lead-list-item:hover { background: #fafaf8; }

.lead-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(200,169,126,0.15);
    border: 1.5px solid rgba(200,169,126,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #b8956a;
}

.lead-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
}

.lead-meta {
    font-size: 0.75rem;
    color: #888;
}

/* Status badges */
.lead-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.status-lead      { background: rgba(0,100,148,0.1);  color: #006494; }
.status-booked    { background: rgba(67,122,34,0.1);  color: #437a22; }
.status-completed { background: rgba(200,169,126,0.2); color: #a07850; }
.status-cancelled { background: rgba(161,44,123,0.1); color: #a12c7b; }

/* Booking date block */
.booking-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    background: rgba(10,45,38,0.06);
    border-radius: 8px;
    padding: 4px 0;
}
.booking-day   { font-size: 1rem; font-weight: 700; color: #0a2d26; line-height: 1; }
.booking-month { font-size: 0.6rem; font-weight: 600; color: #888; text-transform: uppercase; }

/* ══════════════════════════════════════════
   CRM TABLE
══════════════════════════════════════════ */
.crm-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.75rem 1.25rem;
    background: #fafaf8;
}

.crm-table tbody td {
    padding: 0.85rem 1.25rem;
    vertical-align: middle;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: #333;
}

.crm-table tbody tr:last-child td {
    border-bottom: none;
}

.crm-table tbody tr:hover td {
    background: #fafaf8;
}

/* ══════════════════════════════════════════
   CRM FILTERS
══════════════════════════════════════════ */
.crm-filters {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.crm-filters .form-control,
.crm-filters .form-select {
    border-radius: 8px;
    font-size: 0.8rem;
    border-color: rgba(0,0,0,0.1);
}