/* Base Styles */
:root {
    /* Light Theme Variables - Using Darker Green Theme */
    --primary-color: #2B6B39;
    --primary-color-rgb: 43, 107, 57;
    --primary-hover: #235830;
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --background-color: #fbfbfd;
    --sidebar-bg: rgba(251, 251, 253, 0.8);
    --border-color: rgba(210, 210, 215, 0.5);
    --header-height: 64px;
    --sidebar-width: 280px;
    --transition-speed: 0.3s;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --header-bg-opacity: 0.8; /* Adjusted for stronger blur effect */
    --header-bg: rgba(251, 251, 253, 1);
    --footer-bg: rgba(251, 251, 253, 0.8);
    --code-bg: rgba(245, 245, 247, 0.8);
    --code-color: #333333;
    --highlight-color: rgba(43, 107, 57, 0.1);
    --gradient-start: #fbfbfd;
    --gradient-end: #f5f5f7;
    --datalock-blue: #2B6B39;
    --datalock-dark: #235830;
    --datalock-light: #f5f5f7;
    --datalock-accent: #86868b;
    --blur-amount: 100px; /* Adjusted for more pronounced premium glass effect */
    --blur-opacity-light: 0.9;
    --blur-opacity-dark: 0.5;
    --blur-saturation: 110%; /* Slightly increased saturation for better contrast */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.5);
    --code-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --code-border: 1px solid rgba(210, 210, 215, 0.5);
    --code-header-bg: rgba(245, 245, 247, 0.9);
    --code-header-text: #86868b;
    --code-line-highlight: rgba(43, 107, 57, 0.05);
    --code-line-number: #86868b;
    --code-line-number-bg: rgba(245, 245, 247, 0.5);
    --code-copy-bg: rgba(255, 255, 255, 0.8);
    --code-copy-hover: rgba(43, 107, 57, 0.1);
    --icon-size: 48px;
    --icon-color: #2B6B39;
    --icon-bg: rgba(43, 107, 57, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #3d8c4e;
    --primary-color-rgb: 61, 140, 78;
    --primary-hover: #2B6B39;
    --text-color: #f5f5f7;
    --text-secondary: #86868b;
    --background-color: #000000;
    --sidebar-bg: rgba(0, 0, 0, var(--blur-opacity-dark));
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(0, 0, 0, var(--blur-opacity-dark));
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    --header-bg: rgba(0, 0, 0, var(--header-bg-opacity)); /* Use consistent opacity variable */
    --footer-bg: rgba(0, 0, 0, var(--blur-opacity-dark));
    --code-bg: rgba(30, 30, 32, 0.9);
    --code-color: #e5e5ea;
    --highlight-color: rgba(61, 140, 78, 0.2);
    --gradient-start: #1a1a1a;
    --gradient-end: #000000;
    --datalock-blue: #3d8c4e;
    --datalock-dark: #1a1a1a;
    --datalock-light: #000000;
    --datalock-accent: #86868b;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
    --code-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --code-border: 1px solid rgba(255, 255, 255, 0.08);
    --code-header-bg: rgba(30, 30, 32, 0.95);
    --code-header-text: #86868b;
    --code-line-highlight: rgba(61, 140, 78, 0.15);
    --code-line-number: #86868b;
    --code-line-number-bg: rgba(30, 30, 32, 0.5);
    --code-copy-bg: rgba(30, 30, 32, 0.8);
    --code-copy-hover: rgba(61, 140, 78, 0.2);
    --header-bg-opacity: 0.75; /* Adjusted for stronger blur effect */
    --blur-amount: 25px; /* Adjusted for dark mode premium blur */
    --blur-saturation: 115%; /* Enhanced saturation for dark theme */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--background-color);
    transition: background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), 
                color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) - var(--spacing-md));
    -webkit-overflow-scrolling: touch;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--glass-shadow-light);
    z-index: 1000;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    border: var(--glass-border);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
    box-shadow: var(--glass-shadow-dark);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Container */
.documentation-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background-color: var(--background-color);
}

/* Data Background Animation */
.data-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.1;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.data-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    animation: dataFlow 8s infinite;
    opacity: 0.3;
    filter: blur(0.5px);
}

.data-line:nth-child(1) { left: 20%; animation-delay: 0s; }
.data-line:nth-child(2) { left: 40%; animation-delay: 2s; }
.data-line:nth-child(3) { left: 60%; animation-delay: 4s; }
.data-line:nth-child(4) { left: 80%; animation-delay: 6s; }
.data-line:nth-child(5) { left: 90%; animation-delay: 8s; }

@keyframes dataFlow {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Header Styles */
.doc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--header-bg);
    backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturation));
    border-bottom: var(--glass-border);
    z-index: 1000;
    transform: translateZ(0);
    will-change: transform, background-color;
    transition: background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), 
                border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow-light);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
}

/* Dark Theme Header Adjustments */
[data-theme="dark"] .doc-header {
    background-color: rgba(0, 0, 0, var(--header-bg-opacity));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturation));
}

/* Ensure main content doesn't overlap with header */
.main-content {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    position: relative;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Add a pseudo-element to create a blur effect behind the header */
.doc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--header-bg);
    z-index: -1;
    backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturation));
}

/* Ensure header content is above the blur effect */
.header-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* Add a subtle inner shadow to enhance the glass effect */
.doc-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    z-index: 1;
}

[data-theme="dark"] .doc-header::after {
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

/* Responsive adjustments for the premium blur effect */
@media (max-width: 768px) {
    .doc-header {
        backdrop-filter: blur(var(--premium-blur-mobile)) saturate(var(--premium-saturation-mobile));
        -webkit-backdrop-filter: blur(var(--premium-blur-mobile)) saturate(var(--premium-saturation-mobile));
        background-color: rgba(251, 251, 253, var(--premium-glass-opacity-mobile));
    }
    
    .doc-header::before {
        backdrop-filter: blur(var(--premium-blur-mobile)) saturate(var(--premium-saturation-mobile));
        -webkit-backdrop-filter: blur(var(--premium-blur-mobile)) saturate(var(--premium-saturation-mobile));
    }
    
    [data-theme="dark"] .doc-header {
        backdrop-filter: blur(var(--premium-blur-mobile)) saturate(var(--premium-saturation-mobile));
        -webkit-backdrop-filter: blur(var(--premium-blur-mobile)) saturate(var(--premium-saturation-mobile));
        background-color: rgba(0, 0, 0, var(--premium-glass-opacity-mobile));
    }
    
    [data-theme="dark"] .doc-header::before {
        backdrop-filter: blur(var(--premium-blur-mobile)) saturate(var(--premium-saturation-mobile));
        -webkit-backdrop-filter: blur(var(--premium-blur-mobile)) saturate(var(--premium-saturation-mobile));
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .doc-header {
        backdrop-filter: blur(var(--premium-blur-tablet)) saturate(var(--premium-saturation-tablet));
        -webkit-backdrop-filter: blur(var(--premium-blur-tablet)) saturate(var(--premium-saturation-tablet));
        background-color: rgba(251, 251, 253, var(--premium-glass-opacity-tablet));
    }
    
    .doc-header::before {
        backdrop-filter: blur(var(--premium-blur-tablet)) saturate(var(--premium-saturation-tablet));
        -webkit-backdrop-filter: blur(var(--premium-blur-tablet)) saturate(var(--premium-saturation-tablet));
    }
    
    [data-theme="dark"] .doc-header {
        backdrop-filter: blur(var(--premium-blur-tablet)) saturate(var(--premium-saturation-tablet));
        -webkit-backdrop-filter: blur(var(--premium-blur-tablet)) saturate(var(--premium-saturation-tablet));
        background-color: rgba(0, 0, 0, var(--premium-glass-opacity-tablet));
    }
    
    [data-theme="dark"] .doc-header::before {
        backdrop-filter: blur(var(--premium-blur-tablet)) saturate(var(--premium-saturation-tablet));
        -webkit-backdrop-filter: blur(var(--premium-blur-tablet)) saturate(var(--premium-saturation-tablet));
    }
}

@media (min-width: 1025px) {
    .doc-header {
        backdrop-filter: blur(var(--premium-blur-desktop)) saturate(var(--premium-saturation-desktop));
        -webkit-backdrop-filter: blur(var(--premium-blur-desktop)) saturate(var(--premium-saturation-desktop));
        background-color: rgba(251, 251, 253, var(--premium-glass-opacity-desktop));
    }
    
    .doc-header::before {
        backdrop-filter: blur(var(--premium-blur-desktop)) saturate(var(--premium-saturation-desktop));
        -webkit-backdrop-filter: blur(var(--premium-blur-desktop)) saturate(var(--premium-saturation-desktop));
    }
    
    [data-theme="dark"] .doc-header {
        backdrop-filter: blur(var(--premium-blur-desktop)) saturate(var(--premium-saturation-desktop));
        -webkit-backdrop-filter: blur(var(--premium-blur-desktop)) saturate(var(--premium-saturation-desktop));
        background-color: rgba(0, 0, 0, var(--premium-glass-opacity-desktop));
    }
    
    [data-theme="dark"] .doc-header::before {
        backdrop-filter: blur(var(--premium-blur-desktop)) saturate(var(--premium-saturation-desktop));
        -webkit-backdrop-filter: blur(var(--premium-blur-desktop)) saturate(var(--premium-saturation-desktop));
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    height: 32px;
    width: auto;
    transition: filter var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.company-name {
    color: var(--text-color);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
}

/* Dark theme logo adjustments */
[data-theme="dark"] .logo img {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .company-name {
    color: #ffffff;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.search-container {
    position: relative;
}

.search-container input {
    width: 240px;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(10px) saturate(var(--blur-saturation));
}

.search-container input::placeholder {
    color: var(--text-secondary);
}

.search-container input:hover {
    border-color: var(--primary-color);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--highlight-color);
}

/* Sidebar Toggle Button (Mobile) */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: var(--spacing-xl);
    left: var(--spacing-xl);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--glass-shadow-light);
    z-index: 1000;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    border: var(--glass-border);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

.toggle-icon {
    width: 24px;
    height: 24px;
}

/* Sidebar Styles */
.doc-sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    border-right: var(--glass-border);
    padding: var(--spacing-lg) 0;
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    overflow-y: auto;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    margin-bottom: 0;
}

.doc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.doc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.doc-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 2px;
    transition: background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

.sidebar-nav {
    padding: 0 var(--spacing-md);
}

/* Navigation Styles */
.nav-section {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.nav-section h3 {
    color: rgba(0, 0, 0, 0.55);
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--spacing-xs);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.nav-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-section a {
    position: relative;
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    padding: 6px var(--spacing-sm);
    padding-left: 24px;
    margin: 1px 0;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    letter-spacing: 0.01em;
    overflow: hidden;
    line-height: 1.4;
    font-weight: var(--font-weight-medium);
}

.nav-section a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0.3);
    width: 3px;
    height: 16px;
    background-color: var(--primary-color);
    opacity: 0.2;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 1px 1px 0;
}

.nav-section a:hover::before {
    opacity: 0.5;
    transform: translateY(-50%) scaleY(0.6);
}

.nav-section a.active::before {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.2);
}

/* Dark theme adjustments */
[data-theme="dark"] .nav-section a {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .nav-section a:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(76, 175, 80, 0.06);
}

[data-theme="dark"] .nav-section a.active {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .nav-section a::before {
    background-color: #4CAF50;
    opacity: 0.1;
}

[data-theme="dark"] .nav-section a:hover::before {
    opacity: 0.3;
}

[data-theme="dark"] .nav-section a.active::before {
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

/* Main Content Area */
.doc-content {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.doc-content article {
    flex: 1;
    margin-bottom: 0;
}

.doc-content h1 {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.content-section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(10px) saturate(var(--blur-saturation));
    border: var(--glass-border);
}

/* Section Title Styling */
.content-section:first-child h2,
.content-section h2:first-of-type {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    position: relative;
    padding-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.content-section:first-child h2::before,
.content-section h2:first-of-type::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
    opacity: 0.9;
}

.content-section:first-child h2::after,
.content-section h2:first-of-type::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
    opacity: 0.1;
}

/* Subsequent section titles */
.content-section h2:not(:first-of-type) {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    position: relative;
    padding-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.content-section h2:not(:first-of-type)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
    opacity: 0.8;
}

/* Dark theme adjustments */
[data-theme="dark"] .content-section:first-child h2::before,
[data-theme="dark"] .content-section h2:first-of-type::before {
    opacity: 1;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

[data-theme="dark"] .content-section:first-child h2::after,
[data-theme="dark"] .content-section h2:first-of-type::after {
    opacity: 0.15;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .content-section:first-child h2,
    .content-section h2:first-of-type {
        font-size: 22px;
    }

    .content-section h2:not(:first-of-type) {
        font-size: 18px;
    }
}

.content-section h3 {
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    margin: var(--spacing-md) 0 var(--spacing-sm);
    color: var(--text-color);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.content-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.01em;
}

.content-section ul,
.content-section ol {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding: 0;
}

.content-section ul li,
.content-section ol li {
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: var(--spacing-xs) 0;
    padding-left: 24px;
    letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium bullet points */
.content-section ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0.7rem;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section ul li:hover::before {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
    box-shadow: 0 0 6px rgba(var(--primary-color-rgb), 0.3);
}

/* Nested lists */
.content-section ul ul,
.content-section ol ol {
    margin: var(--spacing-xs) 0;
}

.content-section ul ul li,
.content-section ol ol li {
    font-size: 13px;
    margin: calc(var(--spacing-xs) / 2) 0;
}

.content-section ul ul li::before {
    width: 3px;
    height: 3px;
    left: 10px;
    opacity: 0.6;
}

/* Ordered list styling */
.content-section ol {
    counter-reset: item;
}

.content-section ol li {
    counter-increment: item;
}

.content-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 4px;
    top: 0;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section ol li:hover::before {
    opacity: 1;
    transform: translateX(2px);
}

/* Dark theme adjustments */
[data-theme="dark"] .content-section ul li::before {
    background-color: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .content-section ol li::before {
    color: #4CAF50;
}

[data-theme="dark"] .content-section ul li:hover::before {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

/* Code block adjustments */
pre code {
    font-size: 13px;
    line-height: 1.5;
    padding: var(--spacing-md);
    letter-spacing: 0;
}

/* Inline code adjustments */
p code, li code {
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0;
}

/* Dark theme adjustments */
[data-theme="dark"] .content-section h2::before {
    opacity: 0.9;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .doc-content {
        padding: var(--spacing-md);
    }

    .doc-content h1 {
        font-size: 24px;
    }

    .content-section h2 {
        font-size: 18px;
    }

    .content-section h3 {
        font-size: 15px;
    }
}

/* Regular list item styling */
.content-section ul li:hover {
    transform: translateX(5px);
}

.content-section ul li::before {
    content: "";
    position: absolute;
    left: 1.5em;
    top: -1.05em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-color-rgb), 0.8));
    opacity: 0.9;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(var(--primary-color-rgb), 0.2);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 1em;
}

.content-section ul li:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.3);
}

.content-section ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.content-section ol li {
    counter-increment: item;
    padding-left: 2.2em;
}

.content-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0.5em;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(var(--primary-color-rgb), 0.2);
    width: 1.5em;
    text-align: right;
}

.content-section ol li:hover::before {
    transform: translateX(5px);
    opacity: 1;
    text-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.3);
}

/* Nested list styling */
.content-section ul ul,
.content-section ol ol {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
}

.content-section ul ul li::before,
.content-section ol ol li::before {
    width: 5px;
    height: 5px;
    left: 0.6em;
}

/* List spacing adjustments */
.content-section ul + p,
.content-section ol + p {
    margin-top: var(--spacing-md);
}

/* Card list item styling */
.content-section ul:has(li:nth-child(2):last-child),
.content-section ul:has(li:nth-child(4):last-child),
.content-section ol:has(li:nth-child(2):last-child),
.content-section ol:has(li:nth-child(4):last-child) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: 0;
    margin: var(--spacing-xl) 0;
    list-style: none;
}

.content-section ul:has(li:nth-child(2):last-child) li,
.content-section ul:has(li:nth-child(4):last-child) li,
.content-section ol:has(li:nth-child(2):last-child) li,
.content-section ol:has(li:nth-child(4):last-child) li {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    min-height: auto;
    margin: 0;
    color: var(--text-color);
    z-index: 1;
}

.content-section ul:has(li:nth-child(2):last-child) li:hover,
.content-section ul:has(li:nth-child(4):last-child) li:hover,
.content-section ol:has(li:nth-child(2):last-child) li:hover,
.content-section ol:has(li:nth-child(4):last-child) li:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--glass-shadow-light);
    background: var(--card-bg);
    z-index: 2;
}

/* Card header with icon */
.content-section ul:has(li:nth-child(2):last-child) li::before,
.content-section ul:has(li:nth-child(4):last-child) li::before,
.content-section ol:has(li:nth-child(2):last-child) li::before,
.content-section ol:has(li:nth-child(4):last-child) li::before {
    content: "";
    position: relative;
    width: 100%;
    height: 80px;
    margin: 0;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 32px;
    left: 0;
    top: 0;
    transform: none;
    box-shadow: none;
}

/* Card content area */
.content-section ul:has(li:nth-child(2):last-child) li > *:not(:first-child),
.content-section ul:has(li:nth-child(4):last-child) li > *:not(:first-child),
.content-section ol:has(li:nth-child(2):last-child) li > *:not(:first-child),
.content-section ol:has(li:nth-child(4):last-child) li > *:not(:first-child) {
    padding: var(--spacing-md);
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark theme adjustments */
[data-theme="dark"] .content-section ul:has(li:nth-child(2):last-child) li,
[data-theme="dark"] .content-section ul:has(li:nth-child(4):last-child) li,
[data-theme="dark"] .content-section ol:has(li:nth-child(2):last-child) li,
[data-theme="dark"] .content-section ol:has(li:nth-child(4):last-child) li {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .content-section ul:has(li:nth-child(2):last-child) li:hover,
[data-theme="dark"] .content-section ul:has(li:nth-child(4):last-child) li:hover,
[data-theme="dark"] .content-section ol:has(li:nth-child(2):last-child) li:hover,
[data-theme="dark"] .content-section ol:has(li:nth-child(4):last-child) li:hover {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--primary-color);
    box-shadow: var(--glass-shadow-dark);
}

/* Schema-related list items - smaller font size */
.content-section li:has(> *:contains("schema")) *,
.content-section li:contains("Migration"),
.content-section li:contains("Rollback"),
.content-section li:contains("Audit logging") {
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* Adjust spacing for smaller text */
.content-section li:has(> *:contains("schema")),
.content-section li:contains("Migration"),
.content-section li:contains("Rollback"),
.content-section li:contains("Audit logging") {
    margin: calc(var(--spacing-xs) / 2) 0;
}

/* Card Icons - Using SF Symbols style icons */
/* Key Features */
.content-section li:has(> *:contains("Key Features"))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E");
}

/* System Requirements */
.content-section li:has(> *:contains("System Requirements"))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
}

/* Security */
.content-section li:has(> *:contains("Security"))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

/* Authentication */
.content-section li:has(> *:contains("Authentication"))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* API */
.content-section li:has(> *:contains("API"))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 12V8H6a2 2 0 0 1-2-2c0-1.1.9-2 2-2h12v4'/%3E%3Cpath d='M4 12v4h14a2 2 0 0 1 2 2c0 1.1-.9 2-2 2H6v-4'/%3E%3C/svg%3E");
}

/* Documentation */
.content-section li:has(> *:contains("Documentation"))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
}

/* Installation */
.content-section li:has(> *:contains("Installation"))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Configuration */
.content-section li:has(> *:contains("Configuration"))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

/* Default icon for other cards */
.content-section li:not(:has(> *:matches(
    :contains("Key Features"),
    :contains("System Requirements"),
    :contains("Security"),
    :contains("Authentication"),
    :contains("API"),
    :contains("Documentation"),
    :contains("Installation"),
    :contains("Configuration")
)))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

/* Enhanced hover effects for cards */
.content-section ul:has(li:nth-child(2):last-child) li:hover,
.content-section ul:has(li:nth-child(4):last-child) li:hover,
.content-section ol:has(li:nth-child(2):last-child) li:hover,
.content-section ol:has(li:nth-child(4):last-child) li:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

/* Card icon hover effects */
.content-section ul:has(li:nth-child(2):last-child) li:hover::before,
.content-section ul:has(li:nth-child(4):last-child) li:hover::before,
.content-section ol:has(li:nth-child(2):last-child) li:hover::before,
.content-section ol:has(li:nth-child(4):last-child) li:hover::before {
    background-color: var(--primary-hover);
}

/* Code Block Styling */
pre, code {
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

code {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--code-bg);
    color: var(--code-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
}

pre {
    position: relative;
    margin: var(--spacing-lg) 0;
    padding: 0;
    background-color: var(--code-bg);
    border: var(--code-border);
    box-shadow: var(--code-shadow);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    overflow: hidden;
}

pre code {
    display: block;
    padding: 0;
    background-color: transparent;
    color: var(--code-color);
    border-radius: 0;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    white-space: pre;
    tab-size: 4;
    overflow-x: auto;
    max-width: 100%;
}

/* Code Header */
pre::before {
    content: attr(data-language);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background-color: var(--code-header-bg);
    color: var(--code-header-text);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    border-bottom: var(--code-border);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
}

/* Code Copy Button - Removed ::after pseudo-element */
.code-copy-button {
    position: absolute;
    top: 8px;
    right: var(--spacing-md);
    background-color: var(--code-copy-bg);
    color: var(--code-header-text);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: var(--code-border);
    z-index: 10;
}

.code-copy-button:hover {
    background-color: var(--code-copy-hover);
    color: var(--primary-color);
}

/* Code Content */
pre code {
    padding: var(--spacing-md);
    padding-top: calc(36px + var(--spacing-md));
}

/* Line Numbers */
pre code {
    counter-reset: line;
}

pre code > span {
    display: block;
    position: relative;
    padding-left: 3.5em;
}

pre code > span:before {
    content: counter(line);
    counter-increment: line;
    position: absolute;
    left: 0;
    width: 2.5em;
    text-align: right;
    padding-right: 1em;
    color: var(--code-line-number);
    background-color: var(--code-line-number-bg);
    user-select: none;
}

/* Line Highlighting */
pre code > span:hover {
    background-color: var(--code-line-highlight);
}

/* Syntax Highlighting */
pre code .keyword { color: #c678dd; }
pre code .string { color: #98c379; }
pre code .comment { color: #7f848e; font-style: italic; }
pre code .function { color: #61afef; }
pre code .number { color: #d19a66; }
pre code .operator { color: #56b6c2; }
pre code .class { color: #e5c07b; }
pre code .variable { color: #e06c75; }

/* Dark Theme Syntax Highlighting */
[data-theme="dark"] pre code .keyword { color: #c678dd; }
[data-theme="dark"] pre code .string { color: #98c379; }
[data-theme="dark"] pre code .comment { color: #7f848e; font-style: italic; }
[data-theme="dark"] pre code .function { color: #61afef; }
[data-theme="dark"] pre code .number { color: #d19a66; }
[data-theme="dark"] pre code .operator { color: #56b6c2; }
[data-theme="dark"] pre code .class { color: #e5c07b; }
[data-theme="dark"] pre code .variable { color: #e06c75; }

/* Code Block Animation */
pre {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

pre.visible {
    transform: translateY(0);
    opacity: 1;
}

pre:hover {
    box-shadow: var(--glass-shadow-light);
}

/* Inline Code */
p code, li code {
    padding: 0.2em 0.4em;
    background-color: var(--code-bg);
    color: var(--code-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
    font-weight: var(--font-weight-normal);
    border: var(--code-border);
}

/* Footer Styles */
.doc-footer {
    background-color: var(--footer-bg);
    backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturation));
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturation));
    border-top: var(--glass-border);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section h4 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section:hover h4::after {
    width: 60px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    display: block;
    padding: var(--spacing-xs) 0;
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--spacing-xl) auto 0;
    padding: var(--spacing-md) var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .doc-footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }
    
    .doc-sidebar {
        position: fixed;
        left: -100%;
        z-index: 999;
        width: 80%;
        max-width: 300px;
        transition: left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
        /* box-shadow: var(--glass-shadow-dark); */
    }
    
    .doc-sidebar.active {
        left: 0;
    }
    
    .doc-content {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .main-content.sidebar-active {
        overflow: hidden;
    }
    
    .doc-footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .main-nav {
        width: 100%;
        overflow-x: auto;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .doc-content h1 {
        font-size: var(--font-size-xl);
    }
    
    .lead {
        font-size: var(--font-size-md);
    }
    
    .content-section h2 {
        font-size: var(--font-size-lg);
    }
    
    .theme-toggle {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .main-content {
        margin-top: calc(var(--header-height) + var(--spacing-xl));
    }
    
    .doc-footer {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    }
    
    .footer-content {
        padding: 0;
    }
}

/* Print Styles */
@media print {
    html {
        scroll-behavior: auto;
    }
    
    .doc-content,
    .doc-sidebar {
        overflow: visible;
        height: auto;
    }
}

/* Dark Theme Specific Styles */
[data-theme="dark"] .content-section {
    background-color: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .search-container input {
    background-color: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-container input:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 140, 78, 0.2);
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .doc-header {
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .doc-sidebar {
    background-color: rgba(0, 0, 0, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .doc-footer {
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Premium Icons with updated colors and styling */
.content-section ul:has(li:nth-child(4):last-child) li:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'%3E%3C/path%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'%3E%3C/polyline%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.content-section ul:has(li:nth-child(4):last-child) li:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'%3E%3C/path%3E%3Cline x1='4' y1='22' x2='4' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

.content-section ul:has(li:nth-child(4):last-child) li:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'%3E%3C/path%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'%3E%3C/path%3E%3C/svg%3E");
}

.content-section ul:has(li:nth-child(4):last-child) li:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

/* Adjust icon size for better proportion with smaller text */
.content-section ul:has(li:nth-child(2):last-child) li::before,
.content-section ul:has(li:nth-child(4):last-child) li::before,
.content-section ol:has(li:nth-child(2):last-child) li::before,
.content-section ol:has(li:nth-child(4):last-child) li::before {
    width: 40px;
    height: 40px;
    margin-bottom: var(--spacing-sm);
    background-size: 20px;
    border-radius: 10px;
}

/* Adjust card padding for better proportion */
.content-section ul:has(li:nth-child(2):last-child) li,
.content-section ul:has(li:nth-child(4):last-child) li,
.content-section ol:has(li:nth-child(2):last-child) li,
.content-section ol:has(li:nth-child(4):last-child) li {
    padding: var(--spacing-md);
}

/* Adjust spacing between cards */
.content-section ul:has(li:nth-child(2):last-child),
.content-section ul:has(li:nth-child(4):last-child),
.content-section ol:has(li:nth-child(2):last-child),
.content-section ol:has(li:nth-child(4):last-child) {
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .content-section ul:has(li:nth-child(2):last-child) li,
    .content-section ul:has(li:nth-child(4):last-child) li,
    .content-section ol:has(li:nth-child(2):last-child) li,
    .content-section ol:has(li:nth-child(4):last-child) li {
        grid-template-columns: 32px 1fr;
        gap: var(--spacing-xs);
        padding: calc(var(--spacing-sm) - 4px);
    }

    .content-section ul:has(li:nth-child(2):last-child) li::before,
    .content-section ul:has(li:nth-child(4):last-child) li::before,
    .content-section ol:has(li:nth-child(2):last-child) li::before,
    .content-section ol:has(li:nth-child(4):last-child) li::before {
        width: 32px;
        height: 32px;
        background-size: 16px;
    }
}

/* Adjust card padding and internal spacing */
.content-section ul:has(li:nth-child(2):last-child) li,
.content-section ul:has(li:nth-child(4):last-child) li,
.content-section ol:has(li:nth-child(2):last-child) li,
.content-section ol:has(li:nth-child(4):last-child) li {
    padding: var(--spacing-sm);
    margin: 0;
}

/* Adjust icon spacing */
.content-section ul:has(li:nth-child(2):last-child) li::before,
.content-section ul:has(li:nth-child(4):last-child) li::before,
.content-section ol:has(li:nth-child(2):last-child) li::before,
.content-section ol:has(li:nth-child(4):last-child) li::before {
    width: 36px;
    height: 36px;
    margin-bottom: var(--spacing-xs);
    background-size: 18px;
    border-radius: 8px;
}

/* Adjust spacing between cards */
.content-section ul:has(li:nth-child(2):last-child),
.content-section ul:has(li:nth-child(4):last-child),
.content-section ol:has(li:nth-child(2):last-child),
.content-section ol:has(li:nth-child(4):last-child) {
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .content-section ul:has(li:nth-child(2):last-child) li,
    .content-section ul:has(li:nth-child(4):last-child) li,
    .content-section ol:has(li:nth-child(2):last-child) li,
    .content-section ol:has(li:nth-child(4):last-child) li {
        padding: calc(var(--spacing-sm) - 4px);
    }

    .content-section ul:has(li:nth-child(2):last-child) li::before,
    .content-section ul:has(li:nth-child(4):last-child) li::before,
    .content-section ol:has(li:nth-child(2):last-child) li::before,
    .content-section ol:has(li:nth-child(4):last-child) li::before {
        width: 32px;
        height: 32px;
        background-size: 16px;
        margin-bottom: calc(var(--spacing-xs) - 2px);
    }
}

/* Text content for cards */
.content-section ul:has(li:nth-child(2):last-child) li > *:not(:first-child),
.content-section ul:has(li:nth-child(4):last-child) li > *:not(:first-child),
.content-section ol:has(li:nth-child(2):last-child) li > *:not(:first-child),
.content-section ol:has(li:nth-child(4):last-child) li > *:not(:first-child) {
    grid-column: 2;
}

/* Green Container Icon */
.green-container {
    position: relative;
    padding-left: calc(var(--icon-size) + var(--spacing-md));
}

.green-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--icon-size);
    height: var(--icon-size);
    background-color: var(--icon-bg);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B6B39' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.green-container:hover::before {
    transform: translateY(-50%) scale(1.05);
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

[data-theme="dark"] .green-container::before {
    background-color: rgba(61, 140, 78, 0.2);
}

[data-theme="dark"] .green-container:hover::before {
    background-color: var(--primary-color);
}

/* Enhanced Active State */
.nav-section a.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.08);
    font-weight: var(--font-weight-medium);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-color-rgb), 0.1);
}

.nav-section a.active::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(43, 107, 57, 0.3);
    border-radius: 1.5px;
    transform: scaleY(1.2);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.nav-section a:hover {
    color: var(--text-color);
    background-color: rgba(var(--primary-color-rgb), 0.04);
}

.nav-section a:hover::before {
    content: '';
    transform: scaleY(1.1);
}

/* Dark Theme Support */
[data-theme="dark"] .scroll-indicator {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

[data-theme="dark"] .nav-section a.active {
    background-color: rgba(76, 175, 80, 0.1);
}

[data-theme="dark"] .nav-section a:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

/* Infrastructure Section Styling */
[data-section="infrastructure"] h2,
.infrastructure-section h2 {
    color: var(--text-color);
    position: relative;
    padding-left: 28px;
}

[data-section="infrastructure"] h2::before,
.infrastructure-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    opacity: 0.1;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-section="infrastructure"] h2::after,
.infrastructure-section h2::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Infrastructure Enhancements */
[data-theme="dark"] [data-section="infrastructure"] h2,
[data-theme="dark"] .infrastructure-section h2 {
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] [data-section="infrastructure"] h2::before,
[data-theme="dark"] .infrastructure-section h2::before {
    background-color: #4CAF50;
    opacity: 0.15;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] [data-section="infrastructure"] h2::after,
[data-theme="dark"] .infrastructure-section h2::after {
    background-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

[data-theme="dark"] [data-section="infrastructure"] .nav-section a,
[data-theme="dark"] .infrastructure-section .nav-section a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] [data-section="infrastructure"] .nav-section a:hover,
[data-theme="dark"] .infrastructure-section .nav-section a:hover {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(76, 175, 80, 0.08);
    transform: translateX(4px);
}

[data-theme="dark"] [data-section="infrastructure"] .nav-section a.active,
[data-theme="dark"] .infrastructure-section .nav-section a.active {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.12);
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.25);
    font-weight: var(--font-weight-semibold);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    [data-section="infrastructure"] h2,
    .infrastructure-section h2 {
        padding-left: 24px;
    }

    [data-section="infrastructure"] h2::before,
    .infrastructure-section h2::before {
        width: 14px;
        height: 14px;
    }

    [data-section="infrastructure"] h2::after,
    .infrastructure-section h2::after {
        width: 6px;
        height: 6px;
        left: 4px;
    }

    [data-theme="dark"] [data-section="infrastructure"] .nav-section a,
    [data-theme="dark"] .infrastructure-section .nav-section a {
        padding: 8px var(--spacing-sm);
        padding-left: 20px;
    }
}

/* Touch Device Enhancements */
@media (hover: none) {
    [data-theme="dark"] [data-section="infrastructure"] .nav-section a:active,
    [data-theme="dark"] .infrastructure-section .nav-section a:active {
        color: rgba(255, 255, 255, 1);
        background-color: rgba(76, 175, 80, 0.15);
        transform: translateX(2px);
    }
}

/* Dark Theme Navigation Adjustments */
[data-theme="dark"] .nav-section h3 {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

[data-theme="dark"] .nav-section a {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-section a:hover {
    color: #ffffff;
    background-color: rgba(76, 175, 80, 0.08);
    transform: translateX(4px);
}

[data-theme="dark"] .nav-section a.active {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.15);
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.25);
    font-weight: var(--font-weight-semibold);
}

/* Section Headers in Dark Mode */
[data-theme="dark"] .doc-content h2 {
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .doc-content h3 {
    color: rgba(255, 255, 255, 0.9);
}

/* Getting Started Section */
[data-theme="dark"] [data-section="getting-started"] .nav-section a,
[data-theme="dark"] .getting-started-section .nav-section a {
    color: rgba(255, 255, 255, 0.85);
}

/* System Flow Section */
[data-theme="dark"] [data-section="system-flow"] .nav-section a,
[data-theme="dark"] .system-flow-section .nav-section a {
    color: rgba(255, 255, 255, 0.85);
}

/* Infrastructure Section */
[data-theme="dark"] [data-section="infrastructure"] .nav-section a,
[data-theme="dark"] .infrastructure-section .nav-section a {
    color: rgba(255, 255, 255, 0.85);
}

/* API Actions Section */
[data-theme="dark"] [data-section="api-actions"] .nav-section a,
[data-theme="dark"] .api-actions-section .nav-section a {
    color: rgba(255, 255, 255, 0.85);
}

/* Access Control Section */
[data-theme="dark"] [data-section="access-control"] .nav-section a,
[data-theme="dark"] .access-control-section .nav-section a {
    color: rgba(255, 255, 255, 0.85);
}

/* Enhanced visibility for section titles in dark mode */
[data-theme="dark"] .nav-section h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effects for better visibility */
[data-theme="dark"] .nav-section a:hover {
    background-color: rgba(76, 175, 80, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-section a.active {
    background-color: rgba(76, 175, 80, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.25),
                0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced Table Styles */
.content-section .table-list {
    --row-hover-translate: 2px;
    --row-hover-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.08);
    --header-gradient: linear-gradient(
        to bottom,
        rgba(var(--primary-color-rgb), 0.06),
        rgba(var(--primary-color-rgb), 0.03)
    );
}

.content-section .table-list thead th {
    background: var(--header-gradient);
    padding: 16px 20px;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
    position: relative;
}

.content-section .table-list thead th::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(var(--primary-color-rgb), 0.2),
        rgba(var(--primary-color-rgb), 0.1)
    );
}

.content-section .table-list tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.5);
}

.content-section .table-list tbody tr:hover {
    transform: translateY(calc(var(--row-hover-translate) * -1));
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--row-hover-shadow);
    z-index: 1;
    position: relative;
}

.content-section .table-list td {
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.06);
    transition: all 0.2s ease;
}

.content-section .table-list td strong {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Status Indicators */
.content-section .table-list .status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

/* Ensure strong tags within list items flow correctly */
.content-section ul li strong,
.content-section ol li strong {
    display: block; /* Change to block to force title onto its own line */
    margin-bottom: 0.25em; /* Add a small margin below the title */
    font-weight: var(--font-weight-semibold); /* Make title slightly bolder */
}

.content-section .table-list .status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.content-section .table-list tr:hover .status {
    transform: scale(1.05);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .content-section .table-list {
    --header-gradient: linear-gradient(
        to bottom,
        rgba(76, 175, 80, 0.15),
        rgba(76, 175, 80, 0.08)
    );
    --row-hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .content-section .table-list tbody tr {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .content-section .table-list tbody tr:hover {
    background: rgba(76, 175, 80, 0.1);
}

[data-theme="dark"] .content-section .table-list td strong {
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .content-section .table-list .status::before {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .content-section .table-list thead th {
        padding: 12px 16px;
    }
    
    .content-section .table-list td {
        padding: 12px 16px;
    }
    
    .content-section .table-list tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Base Table Styles */
.content-section .table-list {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    margin: var(--spacing-md) 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: var(--glass-border);
    position: relative;
    display: table;
    --row-hover-translate: 2px;
    --row-hover-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.08);
    --header-gradient: linear-gradient(
        to bottom,
        rgba(var(--primary-color-rgb), 0.06),
        rgba(var(--primary-color-rgb), 0.03)
    );
}

/* Table Header */
.content-section .table-list thead {
    display: table-header-group;
    vertical-align: middle;
    background: var(--header-gradient);
}

.content-section .table-list thead th {
    background: var(--header-gradient);
    padding: 16px 20px;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
    position: relative;
    text-align: left;
    color: var(--text-color);
}

/* Table Body */
.content-section .table-list tbody {
    display: table-row-group;
    vertical-align: middle;
}

.content-section .table-list tr {
    display: table-row;
}

.content-section .table-list td {
    display: table-cell;
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.06);
    transition: all 0.2s ease;
    vertical-align: middle;
}

/* Status Styles */
.content-section .table-list .status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.content-section .table-list .status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: var(--primary-color);
}

/* Dark Theme */
[data-theme="dark"] .content-section .table-list {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .content-section .table-list td {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .content-section .table-list {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Operation Status Colors */
.content-section .table-list .status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.content-section .table-list .status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Write Operations */
.content-section .table-list td .status:contains("Write") {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.content-section .table-list td .status:contains("Write")::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

/* Read Operations */
.content-section .table-list td .status:contains("Read") {
    background-color: rgba(25, 118, 210, 0.1);
    color: #1976D2;
}

.content-section .table-list td .status:contains("Read")::before {
    background-color: #1976D2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

/* Admin Operations */
.content-section .table-list td .status:contains("Admin") {
    background-color: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.content-section .table-list td .status:contains("Admin")::before {
    background-color: #9C27B0;
    box-shadow: 0 0 0 2px rgba(156, 39, 176, 0.2);
}

/* Dark Theme Status Colors */
[data-theme="dark"] .content-section .table-list td .status:contains("Write") {
    background-color: rgba(76, 175, 80, 0.2);
    color: #81C784;
}

[data-theme="dark"] .content-section .table-list td .status:contains("Read") {
    background-color: rgba(33, 150, 243, 0.2);
    color: #64B5F6;
}

[data-theme="dark"] .content-section .table-list td .status:contains("Admin") {
    background-color: rgba(186, 104, 200, 0.2);
    color: #BA68C8;
}

/* Guides Section Styles */
.guides-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Make last odd item span full width in 2-column layout */
.guides-container .guide-card:last-child:nth-child(odd) {
    grid-column: span 2;
}

.guide-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.guide-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.guide-card ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.guide-card ol li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
}

.guide-card ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
}

.guide-tips {
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.guide-tips h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

.guide-tips ul {
    margin: 0;
    padding-left: var(--spacing-md);
}

.guide-tips li {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

[data-theme="dark"] .guide-card {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .guide-card::before {
    background: var(--primary-color);
}

[data-theme="dark"] .guide-tips {
    background: rgba(var(--primary-color-rgb), 0.1);
}

/* Company Guidelines Section Styles */
.guidelines-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Make last odd item span full width in 2-column layout */
.guidelines-container .guideline-card:last-child:nth-child(odd) {
    grid-column: span 2;
}

.guideline-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.guideline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.guideline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.guideline-card:hover::before {
    opacity: 1;
}

.guideline-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.guideline-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.guideline-card ul {
    margin: 0;
    padding-left: var(--spacing-md);
}

.guideline-card li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
}

.guideline-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
}

[data-theme="dark"] .guideline-card {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .guideline-card::before {
    background: var(--primary-color);
}

/* Terms of Service and Terms and Conditions Styles */
.terms-container {
    margin-top: var(--spacing-lg);
}

.terms-section {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.terms-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.terms-section p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.terms-section ul {
    margin: 0 0 var(--spacing-md) 0;
    padding-left: var(--spacing-md);
}

.terms-section li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
}

.terms-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
}

[data-theme="dark"] .terms-section {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .terms-section h3 {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Styles for New Sections */
@media (max-width: 768px) {
    .guides-container,
    .guidelines-container {
        grid-template-columns: 1fr;
    }
    
    .guide-card,
    .guideline-card,
    .terms-section {
        padding: var(--spacing-md);
    }
}

/* Premium Card List Styles */
.content-section ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.content-section ul li {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    overflow: visible;
}

.content-section ul li::before {
    content: '';
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
    border-radius: 8px;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section ul li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.content-section ul li:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

/* Dark theme adjustments */
[data-theme="dark"] .content-section ul li {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] .content-section ul li:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    background: rgba(30, 30, 30, 0.95);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .content-section ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-section ul li {
        padding: 1.25rem;
    }
    
    .content-section ul li::before {
        width: 28px;
        height: 28px;
        min-width: 28px;
        background-size: 16px;
    }
}

/* SVG Icons for different list types */
.content-section ul li:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

.content-section ul li:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4'/%3E%3C/svg%3E");
}

.content-section ul li:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E");
}

.content-section ul li:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E");
}

.content-section ul li:nth-child(5)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
}

/* Reduce font size for list items containing strong tags */
.content-section ul li:has(strong),
.content-section ol li:has(strong) {
    font-size: 13px;
    line-height: 1.5; /* Adjust line-height slightly for smaller font */
}

/* Adjust list item styling for those with strong tags */
.content-section ul li:has(strong),
.content-section ol li:has(strong) {
    font-size: 13px;
    line-height: 1.5;
    padding-left: 24px; /* Maintain padding for alignment */
}

/* Reset default list item padding for these specific items if ::before is used */
.content-section ul li:has(strong)::before,
.content-section ol li:has(strong)::before {
    /* If you are using ::before for bullets/numbers, adjust positioning or hide */
    /* Example: content: none; */
    /* Adjust based on your specific list styling */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}