/* ============================================================
   Reboot CRM — Brand theme (logo: black / white / gold bolt)
   Font: Manrope
   ============================================================ */

:root,
[data-bs-theme="light"] {
    --rb-black:              #000000;
    --rb-charcoal:           #1a1a1a;
    --rb-slate:              #2c2c2c;
    --rb-grey:               #6e6e73;
    --rb-grey-light:         #ececee;
    --rb-white:              #ffffff;
    --rb-gold:               #f1d31a;
    --rb-gold-bright:        #fcd12a;
    --rb-gold-deep:          #d4b40f;

    --gv-primary:            var(--rb-gold);
    --gv-primary-light:      rgba(241, 211, 26, 0.16);
    --gv-sidebar-bg:         var(--rb-black);
    --gv-sidebar-border:     #222222;
    --gv-body-bg:            #f0f0f2;
    --gv-topnav-bg:          var(--rb-white);
    --gv-card-bg:            var(--rb-white);
    --gv-text-color:         #111111;
    --gv-text-muted:         var(--rb-grey);
    --gv-link-hover-bg:      rgba(241, 211, 26, 0.14);
    --gv-control-bg:         #f4f4f5;
    --gv-control-border:     #d6d6da;
    --gv-theme-color:        var(--rb-gold);
    --gv-font-family:        'Manrope', sans-serif;
    --bs-font-sans-serif:    'Manrope', sans-serif;
    --bs-body-font-family:   'Manrope', sans-serif;
    --bs-primary:            #f1d31a;
    --bs-primary-rgb:        241, 211, 26;
    --bs-link-color:         #b89f0c;
    --bs-link-hover-color:   #8f7b09;
    --gv-table-header-bg:    #f3f3f5;
    --gv-table-header-color: #555;
    --gv-table-border:       #e2e2e6;
    --gv-table-hover-bg:     rgba(241, 211, 26, 0.1);
    --gv-gold:               var(--rb-gold);
    --gv-gold-bright:        var(--rb-gold-bright);
    --gv-ink:                var(--rb-black);
    --gv-charcoal:           var(--rb-charcoal);
    --gv-ash:                var(--rb-grey);
}

[data-bs-theme="dark"] {
    --gv-primary:            var(--rb-gold-bright);
    --gv-primary-light:      rgba(252, 209, 42, 0.18);
    --gv-sidebar-bg:         var(--rb-black);
    --gv-sidebar-border:     #222;
    --gv-body-bg:            #0d0d0d;
    --gv-topnav-bg:          #141414;
    --gv-card-bg:            #1a1a1a;
    --gv-text-color:         #f5f5f5;
    --gv-text-muted:         #a0a0a5;
    --gv-link-hover-bg:      rgba(241, 211, 26, 0.14);
    --gv-control-bg:         #222;
    --gv-control-border:     #333;
    --gv-theme-color:        var(--rb-gold-bright);
    --bs-primary:            #fcd12a;
    --bs-primary-rgb:        252, 209, 42;
    --gv-table-header-bg:    #1f1f1f;
    --gv-table-header-color: #b0b0b5;
    --gv-table-border:       #2a2a2a;
    --gv-table-hover-bg:     rgba(241, 211, 26, 0.1);
}

/* Buttons — logo gold */
.btn-primary {
    background: linear-gradient(180deg, var(--rb-gold-bright), var(--rb-gold));
    border-color: var(--rb-gold-deep);
    color: #000 !important;
    font-weight: 700;
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, #ffe24a, var(--rb-gold-deep));
    border-color: #b89f0c;
    color: #000 !important;
    box-shadow: 0 4px 16px rgba(241, 211, 26, 0.4);
}
.btn-outline-primary {
    color: #b89f0c;
    border-color: var(--rb-gold);
}
.btn-outline-primary:hover {
    background: var(--rb-gold);
    border-color: var(--rb-gold);
    color: #000;
}

/* Sidebar — pure black + gold active */
.sidebar {
    background: var(--rb-black) !important;
    border-right: 1px solid #222 !important;
    color: #e8e8ea;
}
.sidebar-brand {
    background: var(--rb-black);
    border-bottom: 1px solid #222 !important;
}
.sidebar-brand-text,
.sidebar .fw-semibold,
.sidebar .sidebar-user .fw-semibold {
    color: #f5f5f5 !important;
}
.sidebar .text-muted,
.sidebar .text-dark {
    color: #9a9a9e !important;
}
.sidebar-section-label {
    color: var(--rb-gold) !important;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 10px !important;
}
.sidebar-link {
    color: #c8c8cc !important;
}
.sidebar-link:hover {
    background: rgba(241, 211, 26, 0.1) !important;
    color: #fff !important;
}
.sidebar-link.active,
.nav-link.sidebar-link.active {
    background: linear-gradient(90deg, rgba(241, 211, 26, 0.28), rgba(241, 211, 26, 0.06)) !important;
    color: var(--rb-gold-bright) !important;
    border-left: 3px solid var(--rb-gold);
}
.sidebar-logo-plate {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid rgba(241, 211, 26, 0.35);
    flex-shrink: 0;
}
.sidebar-logo-plate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-logo-fallback {
    background: #000 !important;
    border: 1px solid rgba(241, 211, 26, 0.45);
}
.sidebar-logo-fallback .bi {
    color: var(--rb-gold) !important;
}
.sidebar-close {
    color: #ccc !important;
}

/* Auth — black brand panel with logo */
.gv-auth-brand {
    background: #000 !important;
}
.gv-auth-brand::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rb-gold), transparent);
}
.gv-auth-form {
    background: #f4f4f5 !important;
}
.rb-auth-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    background: #000;
    border: 1px solid rgba(241, 211, 26, 0.35);
    padding: 8px;
}
.rb-auth-logo-sm {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    background: #000;
    border: 1px solid rgba(241, 211, 26, 0.3);
    padding: 4px;
}

#gv-topbar {
    background: linear-gradient(90deg, var(--rb-gold), var(--rb-gold-bright)) !important;
    box-shadow: 0 0 10px rgba(241, 211, 26, 0.55) !important;
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.card.border-0.shadow-sm {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06) !important;
}

/* Dashboard hero */
.rb-dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 88% 18%, rgba(241, 211, 26, 0.28), transparent 55%),
        linear-gradient(135deg, #000 0%, #141414 55%, #1f1a05 100%);
    color: #f5f5f5;
    padding: 1.75rem 1.75rem 1.5rem;
    margin-bottom: 1.25rem;
}
.rb-dash-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(241, 211, 26, 0.08));
    pointer-events: none;
}
.rb-dash-hero h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.65rem;
    margin: 0 0 0.35rem;
}
.rb-dash-hero p {
    color: #b8b8bc;
    margin: 0;
    font-size: 0.95rem;
}
.rb-dash-hero .rb-gold-line {
    width: 48px;
    height: 3px;
    background: var(--rb-gold);
    border-radius: 2px;
    margin: 0.85rem 0 0;
}
.rb-dash-hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: #000;
    border: 1px solid rgba(241, 211, 26, 0.4);
    padding: 6px;
}

.rb-kpi {
    background: var(--gv-card-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1.1rem 1.15rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.rb-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.rb-kpi::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rb-gold), var(--rb-gold-bright));
}
.rb-kpi .rb-kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rb-kpi .rb-kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gv-ink);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-top: 0.25rem;
}
.rb-kpi .rb-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(241, 211, 26, 0.16);
    color: #b89f0c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.rb-schedule-card .list-group-item {
    border-color: #ececef;
    padding: 0.85rem 1rem;
}
.rb-slot-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #000;
    color: var(--rb-gold-bright);
    font-size: 12px;
    font-weight: 600;
    margin: 0.2rem;
}
.rb-slot-pill.booked {
    background: #e8e8ea;
    color: #666;
}
.rb-slot-pill.free {
    background: rgba(241, 211, 26, 0.16);
    color: #8f7b09;
    border: 1px solid rgba(241, 211, 26, 0.4);
}

.avatar-placeholder.bg-primary,
.bg-primary {
    background-color: var(--rb-gold) !important;
    color: #000 !important;
}
.text-primary {
    color: #b89f0c !important;
}
.form-check-input:checked {
    background-color: var(--rb-gold);
    border-color: var(--rb-gold);
}
.page-link.active,
.active > .page-link {
    background-color: var(--rb-gold);
    border-color: var(--rb-gold);
    color: #000;
}

.rb-day-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}
.rb-day-chip {
    flex: 0 0 auto;
    min-width: 72px;
    text-align: center;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e4e4e8;
    color: #444;
    text-decoration: none;
    transition: 0.15s ease;
}
.rb-day-chip:hover {
    border-color: var(--rb-gold);
    color: #111;
}
.rb-day-chip.active {
    background: #000;
    border-color: #000;
    color: var(--rb-gold-bright);
}
.rb-day-chip .d {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.75;
}
.rb-day-chip .n {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}
