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

:root {
    --primary: #D29B39;
    --secondary: #222425;
    --bg-page: #F2F4F6;
    --bg-white: #FFFFFF;
    --text: #222425;
    --text-light: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg-page);
}

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

/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--secondary);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-header {
    padding: 30px 20px;
    background: var(--secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: white;
}

.sidebar-header p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Search Box */
.search-box {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-section-title {
    padding: 10px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary);
}

/* Content */
.content {
    margin-left: 300px;
    flex: 1;
    background: var(--bg-page);
}

.content-header {
    background: var(--secondary);
    color: white;
    padding: 50px;
    border-bottom: 3px solid var(--primary);
}

.content-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.content-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 800px;
    line-height: 1.6;
}

.content-body {
    padding: 40px 50px;
    max-width: 1200px;
}

section {
    background: var(--bg-white);
    padding: 50px;
    margin-bottom: 30px;
    border-radius: 8px;
}

h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text);
}

ul, ol {
    margin: 25px 0 25px 35px;
}

li {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.02rem;
}

strong {
    color: var(--secondary);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-link:hover {
    transform: translateX(5px);
    text-decoration: none;
}

/* Info Box */
.info-box {
    background: var(--bg-page);
    border-left: 4px solid var(--secondary);
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
}

.info-box h4 {
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 12px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: var(--bg-page);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--primary);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3, .feature-card h4 {
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.feature-card ul {
    margin: 15px 0 0 25px;
}

/* Step Guide */
.step-guide {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.step-guide h4 {
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 20px;
}

.step-guide ol {
    margin-left: 25px;
}

.step-guide li {
    margin-bottom: 20px;
    padding-left: 10px;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background: var(--secondary);
    color: white;
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

table tbody tr:hover {
    background: var(--bg-page);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Alerts */
.note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
}

.note strong {
    color: #92400e;
}

.tip {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
}

.tip strong {
    color: #1e40af;
}

.warning {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
}

.warning strong {
    color: #991b1b;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 30px 50px;
    margin-top: 0;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Search Results */
.search-results {
    background: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

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

.search-result-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.search-result-url {
    font-size: 0.8rem;
    opacity: 0.6;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

.search-result-title mark {
    background: var(--primary);
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-300px);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

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

    .content-header {
        padding: 30px 20px;
    }

    .content-header h1 {
        font-size: 2rem;
    }

    .content-body {
        padding: 30px 20px;
    }

    section {
        padding: 30px 20px;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-guide, .info-box, .note, .tip, .warning {
        padding: 20px;
    }

    table {
        font-size: 0.9rem;
    }

    table th, table td {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .content-header h1 {
        font-size: 1.8rem;
    }

    .content-header p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    section h3 {
        font-size: 1.3rem;
    }

    .feature-card h3, .feature-card h4 {
        font-size: 1.1rem;
    }

    ul, ol {
        margin-left: 25px;
    }

    .search-results {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 280px;
        transform: translateX(-280px);
    }

    .content-header {
        padding: 20px 15px;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .content-body {
        padding: 20px 15px;
    }

    section {
        padding: 20px 15px;
    }

    section h2 {
        font-size: 1.4rem;
    }

    section h3 {
        font-size: 1.2rem;
    }

    .feature-card, .step-guide, .info-box {
        padding: 15px;
    }

    .mobile-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }

    table {
        font-size: 0.85rem;
    }

    table th, table td {
        padding: 8px;
    }
}

@media print {
    .sidebar,
    .mobile-toggle,
    .search-box {
        display: none;
    }

    .content {
        margin-left: 0;
    }

    section {
        page-break-inside: avoid;
    }
}
