/* ========================================
   CRS-CONECTA - MANUAL DE USUARIO
   Estilos Premium con Paleta Corporativa
   ======================================== */

:root {
    /* Colores Corporativos CRS - Igual que menu_unificado */
    --crs-red: #E30613;
    --crs-red-dark: #c00510;
    --crs-red-light: #ff1a27;
    --crs-black: #1a1a1a;
    --crs-white: #ffffff;
    
    /* Paleta de Grises Premium */
    --crs-gray-50: #fafafa;
    --crs-gray-100: #f4f6f9;
    --crs-gray-200: #e9ecef;
    --crs-gray-300: #dee2e6;
    --crs-gray-400: #ced4da;
    --crs-gray-500: #adb5bd;
    --crs-gray-600: #6c757d;
    --crs-gray-700: #495057;
    --crs-gray-800: #343a40;
    --crs-gray-900: #212529;
    
    /* Colores del Menú Premium CLARO - Igual que roster */
    --menu-bg: #FFFFFF;
    --menu-text: #1a1a1a;
    --menu-text-muted: #6c757d;
    --menu-border: #e9ecef;
    --menu-hover-bg: #f8f9fa;
    --menu-active-bg: rgba(227, 6, 19, 0.08);
    --menu-header-gradient: linear-gradient(135deg, #E30613 0%, #c00510 50%, #a00410 100%);
    
    /* Colores de módulos */
    --azul: #0d6efd;
    --verde: #198754;
    --naranja: #fd7e14;
    --cyan: #0dcaf0;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #E30613 0%, #c00510 50%, #a00410 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 15px 60px rgba(0, 0, 0, 0.15);
    --menu-shadow: 2px 0 15px rgba(0, 0, 0, 0.08);
    --menu-item-shadow: 0 2px 8px rgba(227, 6, 19, 0.15);
    
    /* Sidebar - Estilo CLARO como roster */
    --sidebar-width: 280px;
    --sidebar-bg: var(--menu-bg);
    --sidebar-text: var(--menu-text);
    --sidebar-text-muted: var(--menu-text-muted);
    --sidebar-hover: var(--menu-hover-bg);
    --sidebar-active: var(--menu-active-bg);
    --sidebar-border: var(--menu-border);
    
    /* Transiciones */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f4f6f9 0%, #e9ecef 100%);
    color: var(--crs-black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button, .btn, a, .nav-item, .module-card, .help-card, .faq-question {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

/* ========== SIDEBAR - ESTILO CLARO PREMIUM (igual que roster) ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow), box-shadow var(--transition-normal);
    box-shadow: var(--menu-shadow);
    border-right: 1px solid var(--sidebar-border);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    text-align: center;
    background: var(--menu-header-gradient);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo decorativo sutil */
.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.logo-link {
    flex-shrink: 0;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
    background: var(--crs-white);
    padding: 2px;
}

.sidebar-logo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.sidebar-title {
    display: flex;
    flex-direction: column;
}

.title-main {
    color: var(--crs-white);
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.title-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Sidebar Search - Estilo Claro */
.sidebar-search {
    padding: 1rem 1rem;
    position: relative;
    background: var(--crs-gray-50);
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-search i {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crs-gray-500);
    font-size: 0.85rem;
}

.sidebar-search input {
    width: 100%;
    background: var(--crs-white);
    border: 1px solid var(--crs-gray-300);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    color: var(--sidebar-text);
    font-family: inherit;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.sidebar-search input::placeholder {
    color: var(--crs-gray-500);
}

.sidebar-search input:focus {
    outline: none;
    background: var(--crs-white);
    border-color: var(--crs-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* Sidebar Navigation - Estilo Claro */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem 2rem;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--crs-gray-300);
    border-radius: 4px;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    padding: 0.5rem 0.75rem 0.6rem;
    color: var(--crs-gray-500);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-section-title i {
    font-size: 0.65rem;
    color: var(--crs-red);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0.9rem;
    margin: 0.15rem 0;
    color: var(--sidebar-text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    border-radius: var(--radius-md);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--crs-red);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-fast);
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--crs-black);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--crs-red);
    font-weight: 600;
}

.nav-item.active::before {
    height: 60%;
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--crs-gray-500);
    transition: color var(--transition-fast);
}

.nav-item:hover i {
    color: var(--crs-red);
}

.nav-item.active i {
    color: var(--crs-red);
}

/* Nav Icons con colores */
.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.nav-icon i {
    width: auto;
    color: var(--crs-white) !important;
}

.icon-rojo {
    background: linear-gradient(135deg, var(--crs-red), var(--crs-red-dark));
}

.icon-azul {
    background: linear-gradient(135deg, #0d6efd, #0056b3);
}

.icon-verde {
    background: linear-gradient(135deg, #198754, #157347);
}

.icon-naranja {
    background: linear-gradient(135deg, #fd7e14, #dc6a12);
}

/* Sidebar Footer - Estilo Claro */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--sidebar-border);
    background: var(--crs-gray-50);
}

.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--crs-gray-500);
    font-size: 0.75rem;
}

.version-info .separator {
    opacity: 0.5;
}

/* ========== MOBILE HEADER ========== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--menu-header-gradient);
    box-shadow: var(--shadow-md);
    z-index: 999;
    align-items: center;
    padding: 0 1rem;
    gap: 12px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--crs-white);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--crs-white);
    padding: 2px;
}

.mobile-title {
    font-weight: 600;
    color: var(--crs-white);
    font-size: 0.95rem;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    padding: 2rem 5%;
    max-width: none;
    width: 100%;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gris-medio);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--crs-red);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    color: var(--crs-red-dark);
}

.breadcrumb i.fa-chevron-right {
    font-size: 0.65rem;
    opacity: 0.5;
}

/* ========== HERO SECTION ========== */
.hero-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--crs-red);
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--blanco);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    color: var(--gris-medio);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--crs-red);
    color: var(--blanco);
}

.btn-primary:hover {
    background: var(--crs-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.3);
}

.btn-secondary {
    background: var(--gris-claro);
    color: var(--gris-oscuro);
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.hero-illustration {
    flex-shrink: 0;
}

.illustration-circle {
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(227, 6, 19, 0.3);
}

.illustration-circle i {
    font-size: 4rem;
    color: var(--blanco);
}

/* ========== QUICK STATS ========== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crs-red);
    font-size: 1.3rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gris-oscuro);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gris-medio);
}

/* ========== SECTION HEADERS ========== */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--crs-red);
}

.section-header p {
    color: var(--gris-medio);
    font-size: 0.95rem;
}

/* ========== MODULES SECTION ========== */
.modules-section {
    margin-bottom: 3rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.module-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.module-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--crs-red);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(227, 6, 19, 0.1);
}

.module-card:hover::before {
    transform: scaleY(1);
}

.module-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    color: var(--blanco);
    transition: transform var(--transition-normal);
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(-5deg);
}

.module-content {
    flex: 1;
}

.module-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.module-card:hover .module-content h3 {
    color: var(--crs-red);
}

.module-content p {
    color: var(--gris-medio);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.module-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.module-topics span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--gris-medio);
    background: var(--gris-claro);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.module-topics span i {
    color: var(--verde);
    font-size: 0.7rem;
}

.module-arrow {
    width: 45px;
    height: 45px;
    background: var(--gris-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crs-red);
    font-size: 1rem;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.module-card:hover .module-arrow {
    background: var(--crs-red);
    color: var(--blanco);
    transform: translateX(5px);
}

/* ========== QUICKSTART SECTION ========== */
.quickstart-section {
    margin-bottom: 3rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--gris-medio);
    line-height: 1.6;
}

.step-content a {
    color: var(--crs-red);
    font-weight: 500;
}

.step-content a:hover {
    text-decoration: underline;
}

/* ========== HELP SECTION ========== */
.help-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.help-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.help-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.05));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crs-red);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.help-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
}

.help-content p {
    font-size: 0.9rem;
    color: var(--gris-medio);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--crs-red);
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap var(--transition-fast);
}

.help-link:hover {
    gap: 12px;
}

/* ========== FOOTER ========== */
.content-footer {
    background: var(--gris-oscuro);
    padding: 2rem 5%;
    margin-top: auto;
}

.footer-inner {
    max-width: none;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ========== SIDEBAR OVERLAY ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========== DOC CONTENT ========== */
.doc-content {
    background: var(--blanco);
    border-radius: var(--radius-xl);
    padding: 3rem 4rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(227, 6, 19, 0.05);
}

.doc-content h1 {
    font-size: 2.2rem;
    color: var(--gris-oscuro);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--gris-claro);
    position: relative;
}

.doc-content h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--crs-red);
    border-radius: 2px;
}

.doc-content h2 {
    font-size: 1.4rem;
    color: var(--blanco);
    background: var(--gradient-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.doc-content h2 i {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 8px;
    font-size: 1rem;
}

.doc-content h3 {
    font-size: 1.15rem;
    color: var(--crs-red-dark);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--crs-red);
    font-weight: 600;
}

.doc-content > p {
    color: var(--gris-oscuro);
    margin-bottom: 1.25rem;
    line-height: 1.9;
    font-size: 1rem;
}

.doc-content ol {
    margin: 1.5rem 0 2rem 0;
    padding: 0;
    list-style: none;
    counter-reset: step-counter;
}

.doc-content ol li {
    position: relative;
    padding: 1rem 1rem 1rem 4rem;
    margin-bottom: 0.75rem;
    background: var(--gris-claro);
    border-radius: var(--radius-md);
    color: var(--gris-oscuro);
    line-height: 1.7;
    counter-increment: step-counter;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.doc-content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.3);
}

.doc-content ol li:hover {
    background: var(--blanco);
    border-left-color: var(--crs-red);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

/* Info boxes */
.info-box {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
}

.info-box.tip {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(25, 135, 84, 0.02));
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.info-box.tip::before {
    background: linear-gradient(180deg, #198754, #20c997);
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.08), rgba(253, 126, 20, 0.02));
    border: 1px solid rgba(253, 126, 20, 0.2);
}

.info-box.warning::before {
    background: linear-gradient(180deg, #fd7e14, #ffc107);
}

.info-box.note {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.08), rgba(227, 6, 19, 0.02));
    border: 1px solid rgba(227, 6, 19, 0.2);
}

.info-box.note::before {
    background: var(--crs-red);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        pointer-events: none;
    }
    
    .sidebar.active {
        transform: translateX(0);
        pointer-events: auto;
    }
    
    .mobile-header {
        display: flex;
        position: relative;
        z-index: 998;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 60px;
        position: relative;
        z-index: 1;
    }
    
    .content-wrapper {
        padding: 1.5rem 4%;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .help-section {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-illustration {
        display: none;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .module-card {
        flex-direction: column;
        text-align: center;
    }
    
    .module-arrow {
        display: none;
    }
    
    .module-topics {
        justify-content: center;
    }
    
    .doc-content {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.stat-card,
.module-card,
.step,
.help-card {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.module-card:nth-child(2) { animation-delay: 0.1s; }
.module-card:nth-child(3) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }
.step:nth-child(4) { animation-delay: 0.3s; }

/* ========== TABLE OF CONTENTS (TOC) ========== */
.toc {
    background: var(--crs-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--crs-gray-200);
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--crs-red);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--crs-gray-100);
}

.toc-title i {
    font-size: 0.9rem;
}

.toc ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc ul li {
    margin: 0;
}

.toc ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.75rem;
    color: var(--crs-gray-700);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}

.toc ul li a:hover {
    background: var(--crs-gray-50);
    color: var(--crs-red);
    border-left-color: var(--crs-red);
    padding-left: 1rem;
}

.toc ul li a i {
    font-size: 0.65rem;
    color: var(--crs-gray-400);
    transition: color var(--transition-fast);
}

.toc ul li a:hover i {
    color: var(--crs-red);
}

/* ========== IMAGE CONTAINERS ========== */
.img-container {
    background: var(--crs-gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px solid var(--crs-gray-200);
}

.img-container.img-wide {
    padding: 2rem;
}

.doc-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.doc-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.doc-img.img-large {
    width: 100%;
}

.doc-img.img-small {
    max-width: 200px;
    width: 100%;
}

.img-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--crs-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.img-caption i {
    color: var(--crs-red);
    font-size: 0.8rem;
}

/* ========== IMAGE GALLERY ========== */
.img-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.img-gallery .img-container {
    margin: 0;
}

@media (max-width: 992px) {
    .img-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .img-gallery {
        grid-template-columns: 1fr;
    }
}

/* ========== DOC CONTENT - LISTS (ul) ========== */
.doc-content ul {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.doc-content > ul > li,
.doc-content ul:not(.toc ul) > li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    color: var(--crs-gray-700);
    line-height: 1.7;
    border-bottom: 1px solid var(--crs-gray-100);
}

.doc-content > ul > li:last-child,
.doc-content ul:not(.toc ul) > li:last-child {
    border-bottom: none;
}

.doc-content > ul > li::before,
.doc-content ul:not(.toc ul) > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: var(--crs-red);
    border-radius: 50%;
}

.doc-content > ul > li i:first-child,
.doc-content ul:not(.toc ul) > li i:first-child {
    color: var(--crs-red);
    margin-right: 8px;
}

/* Nested lists within ol */
.doc-content ol li ul {
    margin: 0.75rem 0 0 0;
}

.doc-content ol li ul li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    border-bottom: none;
    font-size: 0.95rem;
}

.doc-content ol li ul li::before {
    width: 6px;
    height: 6px;
    top: 0.75rem;
    background: var(--crs-gray-400);
}

/* ========== DOC NAVIGATION ========== */
.doc-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--crs-gray-100);
}

.doc-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: var(--crs-gray-50);
    color: var(--crs-gray-700);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid var(--crs-gray-200);
}

.doc-nav-btn:hover {
    background: var(--crs-red);
    color: var(--crs-white);
    border-color: var(--crs-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.doc-nav-btn.prev:hover {
    transform: translateX(-5px);
}

.doc-nav-btn.next:hover {
    transform: translateX(5px);
}

.doc-nav-btn i {
    font-size: 0.85rem;
    transition: transform var(--transition-fast);
}

.doc-nav-btn.prev:hover i {
    transform: translateX(-3px);
}

.doc-nav-btn.next:hover i {
    transform: translateX(3px);
}

/* ========== INFO BOX ICONS ========== */
.info-box > i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.info-box.tip > i {
    color: #198754;
}

.info-box.warning > i {
    color: #fd7e14;
}

.info-box.note > i {
    color: var(--crs-red);
}

.info-box-content {
    flex: 1;
}

.info-box-content p {
    margin: 0;
    color: var(--crs-gray-700);
    line-height: 1.6;
}

.info-box-content p strong {
    color: var(--crs-gray-800);
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--crs-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--crs-red);
    transform: rotate(90deg);
}

/* ========== READING PROGRESS ========== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--crs-gray-200);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* ========== CODE BLOCKS ========== */
.doc-content code {
    background: var(--crs-gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    color: var(--crs-red-dark);
}

.doc-content pre {
    background: var(--crs-gray-900);
    color: var(--crs-gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.doc-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--crs-gray-400);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.code-copy-btn:hover {
    background: var(--crs-red);
    color: var(--crs-white);
}

/* ========== LINKS IN DOC CONTENT ========== */
.doc-content a {
    color: var(--crs-red);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.doc-content a:hover {
    color: var(--crs-red-dark);
}

/* ========== RESPONSIVE TOC ========== */
@media (max-width: 768px) {
    .toc ul {
        grid-template-columns: 1fr;
    }
    
    .doc-nav {
        flex-direction: column;
    }
    
    .doc-nav-btn {
        justify-content: center;
    }
}

