/*
Palette:
- Base: #F8F9FA (Light Grey)
- Primary (Sidebar/Header): #1a202c (Dark Slate)
- Secondary (UI Elements): #718096 (Slate)
- Accent (Buttons, Highlights): #3182ce (Vibrant Blue)
*/

:root {
    --base-bg: #F8F9FA;
    --primary-bg: #1a202c;
    --secondary-color: #718096;
    --accent-color: #3182ce;
    --text-color: #4A5568;
    --heading-color: #2D3748;
    --white-color: #FFFFFF;
    --border-color: #E2E8F0;
    --sidebar-width: 260px;
    --secondary-sidebar-width: 240px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7fafc;
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
}

.b2b-layout {
    display: flex;
}

/* Sidebar */
.sidebar-container {
    width: var(--sidebar-width);
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--primary-bg);
    color: var(--white-color);
    z-index: 1000;

}

/* Secondary Sidebar */
.secondary-sidebar-container {
    width: var(--secondary-sidebar-width);
    position: fixed;
    height: 100%;
    top: 0;
    left: var(--sidebar-width);
    background-color: #edf2f7;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    z-index: 999;
}

.secondary-sidebar {
    display: none;
}

.secondary-sidebar.active {
    display: block;
}

.secondary-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.secondary-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.secondary-sidebar-nav li a {
    display: block;
    padding: 0.75rem 0;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.secondary-sidebar-nav li a:hover {
    background-color: #e2e8f0;
}

/* Main Content */
.main-content {
    margin-left: calc(var(--sidebar-width) + var(--secondary-sidebar-width));
    flex-grow: 1;
    padding: 2.5rem;
}

.main-content-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.main-content-header h1 {
    margin: 0;
    font-size: 2.25rem;
}

/* Card Grid & Card */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--white-color);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    :root {
        --sidebar-width: 220px;
        --secondary-sidebar-width: 200px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 80px;
    }

    .secondary-sidebar-container {
        display: none;
    }

    .main-content {
        margin-left: var(--sidebar-width);
    }

    .sidebar-nav li a {
        justify-content: center;
    }

    .sidebar-nav li a span {
        display: none;
    }

    .sidebar-header .b2b-logo {
        font-size: 1.2rem;
    }
}
