:root {
    --bg: #0f172a;
    --sidebar: #111827;
    --card: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --primary: #3b82f6;
    --hover: #2563eb;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: all 0.25s ease;
}

body.light-mode {
    --bg: #f8fafc;
    --sidebar: #ffffff;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --hover: #1d4ed8;
}

.navbar-custom {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

body.light-mode .navbar-custom {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #e2e8f0;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text span {
    color: var(--primary);
}

.sidebar {
    background: var(--sidebar);
    min-height: 100vh;
    border-right: 1px solid var(--border);
    padding: 25px 15px;
    position: sticky;
    top: 0;
}

.sidebar-title {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(59, 130, 246, 0.18);
    color: var(--text);
    font-weight: 600;
}

body.light-mode .sidebar a.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.search-box {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text) !important;
    border-radius: 14px;
    padding: 14px 18px;
}

body.light-mode .search-box::placeholder  {
    background: var(--card);
    color: var(--text) !important;
}

.search-box::placeholder {
    color: #94a3b8 !important;
    color: rgba(255,255,255,0.45) !important;
    opacity: 1;
}

.search-box:focus {
    border-color: var(--primary);
    box-shadow: none;
    background: var(--card);
    color: white;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.doc-card,
.sidebar,
.small-widget,
.search-box,
.navbar-custom {

    transition: all 0.25s ease;
}

body.light-mode .doc-card,
body.light-mode .small-widget,
body.light-mode .search-box {

    border-color: #dbe3ee;
}

.doc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    transition: all 0.25s ease;
    height: 100%;
}

.doc-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.doc-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.doc-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.doc-category {
    color: var(--primary);
    font-size: 0.82rem;
    margin-bottom: 14px;
    font-weight: 500;
}

.doc-description {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.doc-stats {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.btn-view {
    background: var(--primary);
    border: none;
    border-radius: 12px;
    width: 100%;
    padding: 11px;
    font-weight: 600;
}

.btn-view:hover {
    background: var(--hover);
}

.hero-box {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 35px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.hero-text {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    line-height: 1.7;
}

body.light-mode .hero-text {
    color: rgba(255,255,255,0.92);
}

.badge-custom {
     background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
}

body.light-mode .badge-custom {
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.45);
    color: #0f172a;
}

.top-actions {
    display: flex;
    gap: 12px;
}

.small-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    height: 100%;
}

.widget-number {
    font-size: 1.7rem;
    font-weight: 700;
}

.widget-label {
    color: var(--muted);
    font-size: 0.9rem;
}

@media(max-width: 991px) {
    .sidebar {
        min-height: auto;
        position: relative;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}
