@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #023e32;
    --primary-light: #ecfdf5;
    --accent: #10b981;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f3f4f6;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --radius: 12px;
    --sidebar-width: 280px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- LAYOUT --- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    padding: 24px;
    z-index: 50;
    overflow-y: auto;
}

.brand-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.brand-logo-img {
    max-width: 140px;
    height: auto;
    display: block;
}

.version-badge {
    display: inline-block;
    background: #f3f4f6;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 600;
}

.nav-category {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: #9ca3af; font-weight: 700; margin-bottom: 12px; margin-top: 24px;
}

.nav-link {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 4px;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    background-color: #f9fafb;
    color: var(--primary);
}

.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px 60px;
    max-width: 1600px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main);
    margin-bottom: 8px;
}

.page-desc {
    font-size: 1.1rem; color: var(--text-muted); font-weight: 400;
}

/* Cards & Components */
.doc-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; color: var(--text-main);
}

.btn-primary-doc {
    background: var(--primary); color: #fff;
    padding: 10px 20px; border-radius: 6px;
    font-weight: 500; text-decoration: none; display: inline-block;
    transition: background 0.2s;
}
.btn-primary-doc:hover { background: #035242; color: #fff; }

/* Mobile Handling */
.mobile-toggle { display: none; }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px; }
    .mobile-toggle { display: block; position: fixed; top: 15px; right: 15px; z-index: 100; }
}