@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --accent: #06b6d4;
    --accent-light: rgba(6, 182, 212, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg-body: #0f0f14;
    --bg-sidebar: #13131a;
    --bg-main: #0f0f14;
    --bg-card: #1a1a24;
    --bg-card-hover: #1e1e2e;
    --bg-code: #1e1e2e;

    --text-primary: #FFEE49;
    --text-secondary: #ffffff;
    --text-muted: #5c5880;

    --border-color: #2a2840;
    --border-hover: #4f46e5;

    --sidebar-width: 290px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-body);
    font-size: 15px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 48px rgba(79,70,229,0.2);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-sidebar); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== LAYOUT ===== */
.container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.05));
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}

.nav-section {
    padding: 1.25rem 1rem 0.5rem;
}

.nav-section-title {
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
}

.nav-list { list-style: none; }

.nav-item { margin-bottom: 2px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.82rem;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--primary-glow);
    color: var(--primary-light);
}

.nav-link.active {
    background: var(--primary-glow);
    color: var(--primary-light);
    border-left: 2px solid var(--primary);
}

.nav-link i {
    font-size: 0.75rem;
    opacity: 0.7;
    width: 14px;
}

/* ===== MAIN CONTENT ===== */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2.5rem 3.5rem;
    max-width: calc(100% - var(--sidebar-width));
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.breadcrumb span:last-child { color: var(--text-secondary); }
.breadcrumb-separator { color: var(--border-color); }

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1.2;
    background: linear-gradient(135deg, #f1f0ff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--text-secondary);
}

p {
    margin-bottom: 1.1rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

strong, b { color: var(--text-primary); font-weight: 600; }

/* ===== HERO SECTION ===== */
.doc-hero {
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.04));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.doc-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79,70,229,0.1), transparent 70%);
    pointer-events: none;
}

.doc-hero h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
}

/* ===== FEATURE BADGES ===== */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-primary {
    background: rgba(79,70,229,0.1);
    color: var(--primary-light);
    border-color: rgba(79,70,229,0.3);
}

.badge-accent {
    background: rgba(6,182,212,0.1);
    color: var(--accent);
    border-color: rgba(6,182,212,0.3);
}

.badge-success {
    background: rgba(16,185,129,0.1);
    color: var(--success);
    border-color: rgba(16,185,129,0.3);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: rgba(79,70,229,0.3);
    box-shadow: 0 4px 24px rgba(79,70,229,0.1);
}

/* ===== CODE ===== */
code {
    background: var(--bg-code);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--primary-light);
    border: 1px solid var(--border-color);
}

pre {
    background: var(--bg-code);
    padding: 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 3px solid;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.88rem;
}

.alert strong { font-size: 0.88rem; }

.alert-info {
    background: rgba(79,70,229,0.08);
    border-color: var(--primary);
    color: var(--primary-light);
}

.alert-info strong { color: var(--primary-light); }

.alert-warning {
    background: rgba(245,158,11,0.08);
    border-color: var(--warning);
    color: #fcd34d;
}

.alert-warning strong { color: #fcd34d; }

.alert-success {
    background: rgba(16,185,129,0.08);
    border-color: var(--success);
    color: #6ee7b7;
}

/* ===== STEPS ===== */
.steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}

.steps li {
    position: relative;
    padding: 0.75rem 1rem 0.75rem 3rem;
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.6rem;
    height: 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

/* ===== TABS ===== */
.tabs {
    margin-bottom: 1.5rem;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 0.6rem 0.6rem 0;
}

.tab-button {
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    border-radius: 7px 7px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    bottom: -1px;
}

.tab-button:hover {
    color: var(--text-secondary);
    background: rgba(79,70,229,0.05);
}

.tab-button.active {
    background: var(--bg-card-hover);
    color: var(--primary-light);
    border-color: var(--border-color);
    border-bottom-color: var(--bg-card-hover);
}

.tab-content {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FAQ ===== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(79,70,229,0.3); }

.faq-question {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.7;
}

.text-success { color: var(--success) !important; }

/* ===== REQUIREMENTS LIST ===== */
.req-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.req-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    margin: 0;
}

.req-list li code {
    background: rgba(79,70,229,0.1);
    color: var(--primary-light);
    border-color: rgba(79,70,229,0.2);
    font-size: 0.75rem;
}

/* ===== VIDEO PLAYER (Error 153 Fix) ===== */
.video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    margin: 0;
    box-shadow: none;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.7);
}

.video-thumbnail:hover img {
    transform: scale(1.03);
    filter: brightness(0.5);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.video-thumbnail:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 48px rgba(79,70,229,0.5);
}

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #1a1a2e;
    margin-left: 4px;
}

.video-info {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.video-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.video-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff0000;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.video-watch-btn:hover {
    background: #cc0000;
    color: white;
    transform: translateY(-1px);
}

.video-watch-btn i { font-size: 0.85rem; }

/* ===== SUPPORT SECTION ===== */
.support-card {
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.05));
    border: 1px solid rgba(79,70,229,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.support-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}

.support-info h4 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.support-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-btn-email {
    background: rgba(79,70,229,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(79,70,229,0.3);
}

.contact-btn-email:hover {
    background: rgba(79,70,229,0.25);
    color: var(--primary-light);
}

.contact-btn-whatsapp {
    background: rgba(37,211,102,0.1);
    color: #25d366;
    border: 1px solid rgba(37,211,102,0.3);
}

.contact-btn-whatsapp:hover {
    background: rgba(37,211,102,0.2);
    color: #25d366;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 2.5rem 0;
}

/* ===== ADMIN SECTION TITLE ===== */
.admin-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.05));
    border: 1px solid rgba(79,70,229,0.2);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    margin: 2rem 0 1rem;
}

.admin-title h1 {
    font-size: 1.6rem;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 260px; }
    .content { padding: 2rem; }
}

@media (max-width: 768px) {
    :root { --sidebar-width: 0px; }

    .container { flex-direction: column; }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .content {
        margin-left: 0;
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }

    .tab-buttons { padding: 0.4rem 0.4rem 0; }

    .req-list {
        grid-template-columns: 1fr;
    }

    .support-card { flex-direction: column; }

    .video-play-btn { width: 56px; height: 56px; }
}
