:root {
    /* Premium Color Palette */
    --primary: #2c3e50;
    --primary-dark: #2c3e50;
    --primary-light: #a5b4fc;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #f8fafc;
    --text-accent: #6366f1;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-quaternary: #e2e8f0;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #334155;
    --border-accent: #6366f1;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing - Reduced for compact design */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
}

[data-theme="dark"] {
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-quaternary: #475569;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.8);

    --border: #334155;
    --border-light: #475569;
    --border-dark: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-size: 14px; /* Reduced base font size */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    border: 1px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--secondary-dark));
}

/* Header - Compact */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px; /* Reduced from 80px */
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--bg-glass);
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space);
}

.logo {
    height: 40px; /* Reduced from 60px */
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space);
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
    font-size: 0.85rem; /* Reduced font size */
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space);
}

.search-container {
    position: relative;
}

.search-input {
    width: 280px; /* Reduced from 350px */
    padding: var(--space-sm) var(--space) var(--space-sm) 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1), var(--shadow-sm);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: var(--space);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-results {
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-result {
    padding: var(--space);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
}

.search-result:hover {
    background: var(--bg-secondary);
    transform: translateX(2px);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result-icon {
    color: var(--primary);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: var(--space-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
    width: 36px; /* Reduced from 48px */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px) rotate(180deg);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    padding: var(--space-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

/* Layout */
.layout {
    display: flex;
    margin-top: 60px; /* Adjusted for smaller header */
    min-height: calc(100vh - 60px);
}

/* Sidebar - Compact */
.sidebar {
    width: 300px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
}

.sidebar-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-content {
    padding: var(--space) 0;
}

.nav-section {
    margin-bottom: var(--space);
}

.nav-section-title {
    padding: var(--space-lg) var(--space-xl) var(--space);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-radius: var(--radius);
    margin: 0 var(--space);
}

.nav-section-title:hover {
    color: var(--primary);
    background: var(--bg-secondary);
    transform: translateX(2px);
}

.nav-section-icon {
    font-size: 0.9rem;
    margin-right: var(--space-sm);
}

.nav-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.7rem;
    color: var(--primary);
}

.nav-arrow.rotated {
    transform: rotate(90deg);
}

.nav-items {
    display: none;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-items.expanded {
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg) var(--space-sm) 2.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 2px solid transparent;
    font-size: 0.85rem;
    font-weight: 400;
    position: relative;
    margin: 0 var(--space-sm);
    border-radius: var(--radius-sm);
}

.nav-item:hover {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    border-left-color: var(--primary);
    transform: translateX(2px);
}

.nav-item.active {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-left-color: var(--primary);
    font-weight: 500;
}

.nav-item-icon {
    margin-right: var(--space-sm);
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
    max-width: calc(100% - 280px);
    margin-left: 300px;
}

/* Hero Section - Compact */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}
.hero-meta {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #d9f518;
    text-align: center;
    margin-bottom: 15px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    height: 100px; /* Reduced from 120px */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--space-xl);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-title {
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-feature i {
    font-size: 0.9rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space) var(--space-xl); /* Reduced padding */
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem; /* Reduced font size */
    position: relative;
    overflow: hidden;

    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Content Container - Compact */
.content-container {
    max-width: 1200px; /* Reduced from 1200px */
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

/* Content Sections - Compact */
.content-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl); /* Reduced from var(--space-3xl) */
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-section:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space);
    border-bottom: 1px solid var(--border-light);
}

.section-icon {
    width: 40px; /* Reduced from 60px */
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.8rem; /* Reduced from 2.5rem */
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.content-section h2 {
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space) 0;
    font-size: 1.5rem; /* Reduced from 2rem */
    font-weight: 600;
    position: relative;
    padding-left: var(--space);
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
}

.content-section h3 {
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space) 0;
    font-size: 1.2rem; /* Reduced from 1.6rem */
    font-weight: 600;
}

.content-section h4 {
    color: var(--text-primary);
    margin: var(--space) 0 var(--space-sm) 0;
    font-size: 1.1rem; /* Reduced from 1.3rem */
    font-weight: 600;
}

.content-section p {
    margin-bottom: var(--space);
    color: var(--text-secondary);
    font-size: 0.95rem; /* Reduced from 1.1rem */
    line-height: 1.6;
    font-weight: 400;
}

.content-section ul {
    padding-left: 0;
    margin-bottom: var(--space);
    list-style: none;
}

.content-section li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-weight: 400;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.content-section li:hover {
    background: var(--bg-secondary);
    transform: translateX(2px);
}

.content-section li::before {
    content: '✓';
    color: var(--success);
    font-weight: 600;
    margin-top: 0.1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
    width: 18px; /* Reduced from 24px */
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Premium Code Blocks - Compact */
.code-container {
    position: relative;
    margin: var(--space-lg) 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: #1e293b;
}

.code-header {
    background: linear-gradient(135deg, #334155, #475569);
    padding: var(--space) var(--space-lg);
    border-bottom: 1px solid #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-language {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: #e2e8f0;
}

.code-language-icon {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-xs);
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: var(--space-xs) var(--space);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.code-block {
    /*background: #1e293b !important;*/
    background: #1a1a1a !important;
    color: #e2e8f0 !important;
    padding: var(--space-lg) !important;
    margin: 0 !important;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    border: none !important;
    font-weight: 400 !important;
}

/* Enhanced Syntax Highlighting */
.code-block .keyword {
    color: #c792ea !important;
    font-weight: 500 !important;
}

.code-block .string {
    color: #c3e88d !important;
}

.code-block .comment {
    color: #546e7a !important;
    font-style: italic;
    opacity: 0.8;
}

.code-block .number {
    color: #f78c6c !important;
    font-weight: 500 !important;
}

.code-block .function {
    color: #82aaff !important;
    font-weight: 500 !important;
}

.code-block .variable {
    color: #ffcb6b !important;
}

.code-block .operator {
    color: #eff5f8 !important;
    font-weight: 500 !important;
}

.code-block .tag {
    color: #f07178 !important;
    font-weight: 500 !important;
}

.code-block .attribute {
    color: #c792ea !important;
}

.code-block .value {
    color: #c3e88d !important;
}

.code-block .class {
    color: #ffcb6b !important;
    font-weight: 500 !important;
}

.code-block .method {
    color: #82aaff !important;
    font-weight: 500 !important;
}

.code-block .property {
    color: #80cbc4 !important;
}

.code-block .punctuation {
    color: #89ddff !important;
}

.code-block .php-tag {
    color: #89ddff !important;
    font-weight: 500 !important;
}

.code-block .php-variable {
    color: #f78c6c !important;
}

.code-block .bash-command {
    color: #c3e88d !important;
    font-weight: 500 !important;
}

.code-block .bash-flag {
    color: #82aaff !important;
}

.code-block .env-key {
    color: #ffcb6b !important;
    font-weight: 500 !important;
}

.code-block .env-value {
    color: #c3e88d !important;
}

/* Premium Tables - Compact */
.table-wrapper {
    overflow-x: auto;
    margin: var(--space-lg) 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

th, td {
    padding: var(--space);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}

th {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

td {
    color: var(--text-secondary);
    font-weight: 400;
}

tr:hover {
    background: var(--bg-secondary);
}

td code {
    background: var(--bg-tertiary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border);
}

/* Premium Alerts - Compact */
.alert {
    padding: var(--space-lg);
    border-radius: var(--radius);
    margin: var(--space-lg) 0;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--space);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
}

.alert-icon {
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.alert-content {
    flex: 1;
    font-weight: 400;
    font-size: 0.9rem;
}

.alert.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-color: var(--info);
    color: var(--info);
}

.alert.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: var(--warning);
    color: var(--warning);
}

.alert.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: var(--success);
    color: var(--success);
}

.alert.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: var(--danger);
    color: var(--danger);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 60px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transition: width 0.3s ease;
    z-index: 1001;
    box-shadow: 0 1px 5px rgba(99, 102, 241, 0.3);
}

/* Floating Action Button - Compact */
.fab {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px; /* Reduced from 64px */
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    font-size: 1rem;
}

.fab:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Table of Contents - Compact with Hide Option */
.toc {
    position: fixed;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space);
    box-shadow: var(--shadow);
    max-height: 400px;
    overflow-y: auto;
    width: 200px; /* Reduced from 250px */
    display: none;
    z-index: 998;
    transition: var(--transition);
}

.toc.hidden {
    transform: translateY(-50%) translateX(220px);
    opacity: 0;
    pointer-events: none;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

.toc-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.toc-hide-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.8rem;
}

.toc-hide-btn:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.toc-item {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding-left: var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 400;
}

.toc-item:hover,
.toc-item.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--bg-secondary);
    transform: translateX(2px);
}

/* TOC Show Button */
.toc-show-btn {
    position: fixed;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
    font-size: 0.9rem;
}

.toc-show-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .toc, .toc-show-btn {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .search-input {
        width: 220px;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .search-container {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-visible {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
    }

    .header-content {
        padding: 0 var(--space);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .content-container {
        padding: var(--space-lg) var(--space);
    }

    .content-section {
        padding: var(--space-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .fab {
        bottom: var(--space);
        right: var(--space);
    }
}

/* Highlight search results */
.highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1));
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Custom Badges - Compact */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid;
}

.badge.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
}

.badge.success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
    border-color: var(--success);
}

.badge.info {
    background: linear-gradient(135deg, var(--info), var(--secondary));
    color: white;
    border-color: var(--info);
}

.badge.warning {
    background: linear-gradient(135deg, var(--warning), var(--accent-dark));
    color: white;
    border-color: var(--warning);
}

/* Image Styles - Compact */
.content-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin: var(--space-lg) 0;
    transition: var(--transition);
}

.content-image:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.code-block,
.code-block code,
.code-block span {
    font-family: 'Fira Code', 'Monaco', 'Menlo', monospace !important;
}

.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 8px;
    color: inherit;
    text-decoration: none;
}
.github-link:hover {
    color: #4078c0; /* GitHub blue */
}

.larite-logo {
    display: flex;
    text-decoration: none;
}
.larite-logo img {
    margin-right: 15px;
}

