:root {
 --bg-primary: #0D1117;
--bg-secondary: #161B22;
--border: #2D333B;
--primary-gradient: linear-gradient(135deg, #22272E 0%, #2D333B 100%);
    --primary: #22272E;
    --primary-dark: #1C2128;
    --secondary: #2D333B;
    --accent: #768390;
    --text-main: #adbac7;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --sidebar-width: 280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: black;
    background-color: #fcfcfc;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.doc-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-light);
    border-right: 1px solid #e5e7eb;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav a > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #fff;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sidebar-nav a i {
    font-size: 1.1rem;
}

.sidebar-nav .has-sub > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-nav .has-sub.open > a::after {
    transform: rotate(180deg);
}

.sidebar-nav .sub-nav {
    list-style: none;
    padding-left: 2rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    display: none;
}

.sidebar-nav .has-sub.open > .sub-nav {
    display: block;
}

.sidebar-nav .sub-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    justify-content: flex-start;
}

.sidebar-nav .sub-nav a:hover,
.sidebar-nav .sub-nav a.active {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary);
    box-shadow: none;
}

/* Main Content */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 4rem 10%;
    max-width: 1200px;
}

.doc-section {
    padding: 3rem;
    margin-bottom: 5rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.doc-section:last-child {
    margin-bottom: 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;

}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* Grid & Items */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-item {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 153, 117, 0.1);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Code & Pre */
code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: var(--secondary);
}

pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 1rem 0 2rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.alert.info {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Buttons */
.btn-download, .btn-support {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-download {
    background-color: var(--primary);
    color: #fff;
}

.btn-download:hover {
    background-color: var(--primary-dark);
}

.btn-support {
    background-color: var(--text-main);
    color: #fff;
    margin-top: 1rem;
}

.btn-support:hover {
    background-color: #000;
}

/* Download Box */
.download-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px dashed #d1d5db;
}

.download-box i {
    font-size: 2.5rem;
    color: #ef4444;
}

.download-info {
    flex: 1;
}

.download-info strong {
    display: block;
    font-size: 1.1rem;
}

.download-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Support Card */
.support-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.support-card h3 {
    margin-top: 0;
}

.support-card p {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

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

th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--text-main);
}

tr:hover {
    background-color: #f9fafb;
}

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

.folder-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.folder-item:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.folder-item strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.folder-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    .content {
        margin-left: 0;
        padding: 2rem 5%;
    }
}

/* New Module and API Components */
.module-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.module-card:hover {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.module-header i {
    font-size: 1.5rem;
    color: var(--primary);
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.module-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.module-body ul {
    list-style: none;
    padding-left: 0.5rem;
}

.module-body li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.module-body li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.module-item-small {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.module-item-small i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.module-item-small h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.module-item-small p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.api-note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    font-size: 0.95rem;
    color: #92400e;
}

.api-note strong {
    color: #b45309;
}

/* User Manual Step Cards */
.step-card {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 1rem 1rem 0;
    margin: 1.5rem 0;
}

.step-card h4 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-card ol, .step-card ul {
    padding-left: 1.25rem;
}

.step-card li {
    margin-bottom: 0.5rem;
}

.mt-10 { margin-top: 2.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-start { text-align: left !important; }

/* Image Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.75rem;
}

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

.doc-image-container {
    margin: 2rem 0;
    text-align: center;
}
