﻿/* =========================
   BCC SERVICEHUB V2 THEME
========================= */

:root {
    --v2-primary: #0d6efd;
    --v2-navy: #111827;
    --v2-dark: #1f2937;
    --v2-muted: #6b7280;
    --v2-bg: #f5f7fb;
    --v2-white: #ffffff;
    --v2-border: #e5e7eb;
    --v2-gold: #d4af37;
    --v2-danger: #dc3545;
    --v2-radius: 16px;
    --v2-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--v2-bg);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================
   APP SHELL
========================= */

.bccv2-shell {
    min-height: 100vh;
    background: var(--v2-bg);
}

.bccv2-topbar {
    height: 72px;
   background: #f8fafc;
    border-bottom: 1px solid var(--v2-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.bccv2-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bccv2-logo-box {
    width: 150px;
    height: 52px;
    border-radius: 14px;
    background: #4b2e83;
    border: 1px solid #3b236b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px 12px;
}

.bccv2-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bccv2-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .bccv2-brand-text strong {
        font-size: 1.15rem;
        font-weight: 900;
        color: var(--v2-navy);
    }

    .bccv2-brand-text span {
        font-size: 0.75rem;
        color: var(--v2-muted);
        font-weight: 700;
    }

.bccv2-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bccv2-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bccv2-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--v2-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .bccv2-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.bccv2-user-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.15;
}

    .bccv2-user-text strong {
        font-size: 0.9rem;
        color: var(--v2-navy);
        font-weight: 900;
    }

    .bccv2-user-text span {
        font-size: 0.75rem;
        color: var(--v2-muted);
        font-weight: 700;
    }

.bccv2-btn {
    border: 1px solid var(--v2-border);
    background: #ffffff;
    color: #374151;
    padding: 9px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

    .bccv2-btn:hover {
        background: #fff1f2;
        color: var(--v2-danger);
        border-color: #fecdd3;
    }

.bccv2-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: var(--v2-primary);
    color: #ffffff;
    align-items: center;
    justify-content: center;
}

.bccv2-body {
    display: flex;
    padding-top: 72px;
    min-height: 100vh;
}

.bccv2-content {
    flex: 1;
    min-width: 0;
    margin-left: 280px;
    padding: 22px;
    background: var(--v2-bg);
}

.bccv2-content-full {
    margin-left: 0;
    padding: 0;
}

.bccv2-backdrop {
    display: none;
}

/* Temporarily align old sidebar with new layout */
.bcc-sidebar {
    top: 72px !important;
    height: calc(100vh - 72px) !important;
}

/* Mobile */
@media (max-width: 991px) {
    .bccv2-topbar {
        padding: 0 14px;
    }

    .bccv2-brand-text span,
    .bccv2-user-text,
    .bccv2-btn span {
        display: none;
    }

    .bccv2-menu-btn {
        display: inline-flex;
    }

    .bccv2-content {
        margin-left: 0;
        padding: 16px;
    }

    .bcc-sidebar {
        position: fixed !important;
        left: -290px !important;
        top: 72px !important;
        z-index: 2100 !important;
        transition: left 0.25s ease !important;
    }

        .bcc-sidebar.show {
            left: 0 !important;
        }

    .bccv2-backdrop {
        display: block;
        position: fixed;
        inset: 72px 0 0 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 2050;
    }
}
/* =========================
   USER AVATAR FALLBACK FIX
========================= */

.bccv2-avatar img[src=""],
.bccv2-avatar img:not([src]),
.dashboard-user img[src=""],
.dashboard-user img:not([src]),
.profile-progress-avatar[src=""],
.profile-progress-avatar:not([src]) {
    display: none !important;
}

.bccv2-avatar,
.dashboard-user-placeholder,
.profile-progress-avatar-placeholder {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
}

.bccv2-avatar {
    background: #f3f0ff !important;
    color: #4b2e83 !important;
}

.dashboard-user-placeholder {
    background: #ffffff !important;
    color: #4b2e83 !important;
}

.profile-progress-avatar-placeholder {
    background: #f3f0ff !important;
    color: #4b2e83 !important;
}
