/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    font-size: 13px;
    color: #24292e;
    background-color: #ece0371a;
}

/* Navigation */
.navbar {
    background-color: #f6f8fa;
    border-bottom: 1px solid #e1e4e8;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: #0366d6;
    text-decoration: none;
    padding: 16px 0;
}

.nav-version {
    background-color: #f1f8ff;
    color: #0366d6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    color: #586069;
    text-decoration: none;
    padding: 16px 0;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-menu a:hover {
    color: #0366d6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 24px 16px;
}

/* Sidebar */
.sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 10px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #24292e;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

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

.sidebar-section li {
    margin-bottom: 2px;
    line-height: 1.3;
}

.sidebar-section a {
    display: block;
    padding: 4px 8px;
    color: #586069;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.sidebar-section a:hover {
    background-color: #f6f8fa;
    color: #0366d6;
}

.sidebar-section a.active {
    background-color: #f1f8ff;
    color: #0366d6;
    font-weight: 500;
}

/* Smooth scrolling for sidebar if content is long */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: #d1d5da;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #959da5;
}

/* Main content */
.content {
    flex: 1;
    min-width: 0;
}

.page-header {
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e4e8;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #24292e;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 18px;
    color: #586069;
}

/* Sections */
section {
    margin-bottom: 48px;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    color: #24292e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e4e8;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    color: #24292e;
    margin: 24px 0 12px 0;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    color: #24292e;
    margin: 16px 0 8px 0;
}

h5 {
    font-size: 16px;
    font-weight: 600;
    color: #24292e;
    margin: 12px 0 6px 0;
}

/* Code blocks */
pre {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 16px;
    background-color: #f6f8fa;
    padding: 2px 4px;
    border-radius: 3px;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.language-python {
    position: relative;
}

.language-bash {
    position: relative;
}

/* Math blocks */
/* Math blocks */
.math-block {
    background-color: #f8f9fa;
    border-left: 4px solid #0366d6;
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 6px 6px 0;
    font-family: 'Cambria Math', 'Cambria', 'Times New Roman', serif;
}

.math-block p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.8;
}

.math-block p:last-child {
    margin-bottom: 0;
}

.math-block strong {
    font-weight: 600;
    color: #24292e;
}

/* Math equation styling */
.math-eq {
    font-style: italic;
    letter-spacing: 0.5px;
}

.math-fn {
    font-style: normal;
    font-weight: 500;
}

sup {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
}

sub {
    font-size: 0.75em;
    vertical-align: sub;
    line-height: 0;
}

/* API documentation */
.api-section {
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
}

.api-signature {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 8px 0 16px 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 16px;
    color: #24292e;
}

.parameters,
.returns {
    margin: 16px 0;
}

.parameters h4,
.parameters h5,
.returns h4,
.returns h5 {
    color: #0366d6;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.parameters dl,
.returns dl {
    margin: 0;
}

.parameters dt,
.returns dt {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 16px;
    font-weight: 600;
    color: #e36209;
    margin-top: 12px;
    margin-bottom: 4px;
}

.parameters dd,
.returns dd {
    margin-left: 16px;
    margin-bottom: 8px;
    color: #586069;
}

.method,
.function {
    margin: 24px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.examples {
    margin: 16px 0;
}

.examples h4 {
    color: #0366d6;
    margin-bottom: 8px;
}

/* Example sections */
.example {
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
}

/* Lists */
ul, ol {
    margin: 16px 0;
    padding-left: 24px;
}

li {
    margin-bottom: 4px;
}

ul ul,
ol ol {
    margin: 4px 0;
}

/* Links */
a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #586069;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}

pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background-color: #24292e;
}

.copy-btn.copied {
    background-color: #28a745;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    border: 1px solid #e1e4e8;
}

th, td {
    border: 1px solid #e1e4e8;
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #f6f8fa;
    font-weight: 600;
}

/* for overview */
#overview .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

#overview .card {
    background: #fdf8f8; /* solid first to test */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(124, 144, 233, 0.541);
}

#overview .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

#overview .card h3 {
    margin-top: 0;
}

.feature-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin: 2rem 0;
        }

        .feature-item {
            background: linear-gradient(135deg, #f9f9f9 0%, #f3eff7 100%);
            color: rgb(14, 13, 13);
            padding: 1rem;
            border-radius: 10px;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .feature-item:hover {
            transform: scale(1.05);
        }



/* Responsive design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content {
        order: 1;
    }
    
    .sidebar-section {
        display: inline-block;
        margin-right: 24px;
        vertical-align: top;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 8px 16px;
    }
    
    .nav-menu {
        gap: 16px;
        margin-top: 8px;
    }
    
    .nav-menu a {
        padding: 8px 0;
    }
    
    .container {
        padding: 16px;
        gap: 16px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .sidebar-section {
        display: block;
        margin-right: 0;/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Main Content Layout */
.main-content {
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 80px);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 4rem 2rem;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero {
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px 20px 0 0;
    padding: 6rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Badges and Buttons */
.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
}

/* Typography */
h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #667eea;
}

h4 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #764ba2;
}

.highlight {
    background: linear-gradient(120deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: bold;
}

/* Layout Components */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin-top: 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
}

.installation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* Code and Math Blocks */
.code-block {
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 2rem;
    border-radius: 10px;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    position: relative;
    line-height: 1.4;
}

.code-block::before {
    content: 'Python';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.math-block {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Times New Roman', serif;
    border-radius: 0 10px 10px 0;
}

.method-section {
    background: rgba(102, 126, 234, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

/* Copy Button Styles */
.copy-button {
    position: absolute;
    top: 10px;
    right: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f8f8f2;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Lists */
ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

li {
    margin: 0.5rem 0;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .installation-grid {
        grid-template-columns: 1fr;
    }

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

    .grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .code-block {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .table th, .table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.tab:focus,
.btn:focus,
.nav-links a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header {
        position: static;
        background: white;
        box-shadow: none;
    }

    .main-content {
        margin-top: 0;
        box-shadow: none;
    }

    .btn, .badge {
        display: none;
    }

    .code-block {
        background: #f5f5f5;
        color: #333;
        border: 1px solid #ccc;
    }
}

