:root {
    /* Hive Color Scheme */
    --honey-gold: #ffa000;
    --honey-dark: #ff8f00;
    --honeycomb-bg: #fff8e1;
    --wax-color: #ffecb3;
    --pollen-accent: #ffd740;
    --text-primary: #4a4a4a;
    --text-secondary: #666666;
    --bee-black: #212121;
    
    /* Layout Variables */
    --sidebar-width: 280px;
    --header-height: 70px;
    --hexagon-size: 60px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--honeycomb-bg);
    background-image: 
        repeating-linear-gradient(
            60deg,
            rgba(255, 160, 0, 0.1) 0px,
            rgba(255, 160, 0, 0.1) 1px,
            transparent 1px,
            transparent 30px
        ),
        repeating-linear-gradient(
            120deg,
            rgba(255, 160, 0, 0.1) 0px,
            rgba(255, 160, 0, 0.1) 1px,
            transparent 1px,
            transparent 30px
        );
}

/* Honeycomb Layout */
.layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar with Honeycomb Pattern */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--honey-dark) 100%);
    position: fixed;
    height: 100vh;
    padding: 2rem;
    color: white;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(
            30deg,
            rgba(255, 255, 255, 0.1) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(255, 255, 255, 0.1) 87.5%,
            rgba(255, 255, 255, 0.1)
        ),
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.1) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(255, 255, 255, 0.1) 87.5%,
            rgba(255, 255, 255, 0.1)
        );
    background-size: var(--hexagon-size) var(--hexagon-size);
    opacity: 0.3;
    z-index: 0;
}

/* Sidebar Content */
.sidebar-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: white;
    padding: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Navigation Styles */
.nav-links {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-group-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::before {
    transform: translateX(0);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 3rem 4rem;
    flex: 1;
    max-width: 1200px;
    position: relative;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--honey-gold), var(--pollen-accent));
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bee-black);
    margin-bottom: 1.5rem;
    position: relative;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--bee-black);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wax-color);
}

/* Code Blocks */
pre {
    background: var(--bee-black);
    padding: 1.75rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.75rem 0;
    border: 1px solid var(--wax-color);
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9375rem;
    color: var(--honeycomb-bg);
}

/* Tables */
.env-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.env-table th,
.env-table td {
    padding: 1rem 1.5rem;
    border: 1px solid var(--wax-color);
}

.env-table th {
    background: var(--honey-gold);
    color: white;
    font-weight: 600;
    text-align: left;
}

.env-table tr:hover td {
    background: var(--honeycomb-bg);
}

/* Support Card */
.support-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wax-color);
    position: relative;
    overflow: hidden;
}

.support-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle at center, var(--honey-gold) 0%, transparent 70%);
    opacity: 0.2;
    transform: translate(30%, 30%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--honey-gold);
        border: none;
        border-radius: 8px;
        padding: 0.75rem;
        color: white;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--honey-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--honey-dark);
}