:root {
    --bg-color: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin: 0; padding: 0;
    min-height: 100vh;
    background-color: #020617; /* Base deep slate */
    background-image: 
        radial-gradient(ellipse at top, rgba(30, 27, 75, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Patrón de grilla tecnológica sutil */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Glassmorphism Background Orbs */
.background-orbs {
    display: none;
}

.container { width: 100%; max-width: 900px; margin: 40px 20px; }

/* Glass Panel */
.glass-panel {
    background: var(--panel-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color); border-radius: 24px; padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

header { text-align: center; margin-bottom: 40px; }
header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; color: transparent; }
header p { color: var(--text-muted); font-size: 1.1rem; }

/* Dashboard & SPA Views */
.container { width: 100%; max-width: 900px; margin: 0 auto; }
.app-view { display: none; width: 100%; box-sizing: border-box; }
.app-view.active { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 100vh; padding: 6vh 20px 5vh 20px; animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.app-view.hidden { display: none !important; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#app-dashboard.active { justify-content: center; padding: 20px; }
#app-dashboard .container { max-width: 1200px; }

/* AI Outputs */
.result-container { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--primary); border-radius: 12px; padding: 20px; animation: fadeIn 0.5s ease-out forwards; }
.ai-output-box { color: #f8fafc; font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; background: #0f172a; padding: 15px; border-radius: 8px; border: 1px solid #334155; max-height: 400px; overflow-y: auto; font-family: 'Outfit', sans-serif; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; margin-bottom: 10px; font-weight: 700; }
.dashboard-header { text-align: center; margin-bottom: 40px; }
.dashboard-header h1 { font-size: 3.2rem; font-weight: 300; letter-spacing: -1px; margin-bottom: 10px; color: white; }
.dashboard-header h1 strong { font-weight: 700; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; color: transparent; }
.dashboard-header p { color: #94a3b8; font-size: 1.1rem; font-weight: 300; }

.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}
@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}
.dashboard-card {
    background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 30px 20px;
    text-align: center; cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
}
.dashboard-card:hover:not(.disabled) { 
    transform: translateY(-8px); 
    border-color: rgba(168, 85, 247, 0.5); 
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(59, 130, 246, 0.3);
    background: rgba(30, 41, 59, 0.8); 
}
.dashboard-card.disabled { opacity: 0.5; cursor: not-allowed; }
.card-icon { font-size: 3rem; margin-bottom: 20px; transition: transform 0.3s; }
.dashboard-card:hover:not(.disabled) .card-icon { transform: scale(1.1); }
.dashboard-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; color: #f8fafc; }
.dashboard-card p { color: #cbd5e1; font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; font-weight: 300; }
.badge { background: rgba(255,255,255,0.1); color: #cbd5e1; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; display: inline-block; letter-spacing: 0.5px; text-transform: uppercase; }

.btn-back { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    color: #e2e8f0; 
    font-size: 0.85rem; 
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    padding: 10px 20px; 
    border-radius: 30px;
    margin-bottom: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-back i { font-size: 1rem; transition: transform 0.3s; }
.btn-back:hover { 
    background: rgba(255, 255, 255, 0.15); 
    color: white; 
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.btn-back:hover i { transform: translateX(-3px); }

/* Sections inside Apps */
section { display: none; animation: slideUpFade 0.4s ease-out forwards; }
section.active { display: block; }

/* Global Form Elements (Fixing Black Text Issue) */
input, select, textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2) !important;
}

.input-group { margin-bottom: 25px; }
.input-group label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 1.1rem; color: #f8fafc; }
textarea { height: 150px; resize: vertical; }

button {
    width: 100%; padding: 16px; border-radius: 12px; font-size: 1.2rem; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s ease; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 1rem; width: auto; }

/* Loader */
.loader { text-align: center; padding: 60px 0; }
.spinner {
    width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.1); border-left-color: var(--primary);
    border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Toolbar */
.toolbar {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(15, 23, 42, 0.8); padding: 15px 20px; border-radius: 12px; margin-bottom: 20px; flex-wrap: wrap; gap: 15px;
}
.toolbar-group { display: flex; align-items: center; gap: 10px; }
.toolbar-group label { font-weight: 600; color: #cbd5e1; }
select { background: #1e293b; color: white; border: 1px solid #475569; padding: 8px 12px; border-radius: 8px; outline: none; cursor: pointer; }

/* Theme Popover Styles */
.theme-selector-group { position: relative; }
.btn-outline {
    background: transparent; border: 1px solid #475569; color: white;
    padding: 8px 12px; border-radius: 8px; cursor: pointer;
    display: flex; gap: 8px; align-items: center; font-size: 0.95rem; font-weight: 600;
}
.theme-popover {
    position: absolute; top: calc(100% + 10px); left: 0; background: white; color: #0f172a;
    border-radius: 12px; padding: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 260px; z-index: 100;
    transition: opacity 0.2s, transform 0.2s;
    transform-origin: top left;
}
.theme-popover.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; }
.theme-popover-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 15px; font-size: 1rem; color: #1e293b; align-items: center; }
.theme-popover-header i { color: #64748b; font-size: 1.1rem; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.theme-swatch {
    aspect-ratio: 1; border-radius: 6px; cursor: pointer;
    box-shadow: 0 0 0 2px transparent, 0 0 0 3px transparent;
    transition: all 0.2s;
}
.theme-swatch:hover { transform: scale(1.05); }
.theme-swatch.active { box-shadow: 0 0 0 2px white, 0 0 0 4px #cbd5e1; transform: scale(1.05); }
.btn-custom {
    width: 100%; background: #f8fafc; border: 1px solid #e2e8f0; color: #0f172a;
    padding: 10px; border-radius: 6px; font-weight: 700; font-size: 0.85rem;
    cursor: pointer; transition: background 0.2s;
}
.btn-custom:hover { background: #f1f5f9; }

/* Paywall Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); z-index: 1000;
    display: flex; justify-content: center; align-items: center;
}
.modal-overlay.hidden { display: none; }
.modal-content {
    background: #1e293b; padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; width: 90%;
    border: 1px solid var(--primary); box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3); position: relative; animation: zoomIn 0.3s ease-out;
}
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; width: auto; padding: 0; }
.secure-text { font-size: 0.9rem; color: #10b981; margin-top: 15px; }

/* CV Paper A4 */
.cv-paper-container {
    width: 100%; overflow-x: auto; background: rgba(0,0,0,0.2);
    padding: 20px; border-radius: 12px; position: relative;
}
.watermark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 5rem; font-weight: 800; color: rgba(0, 0, 0, 0.1); z-index: 10;
    pointer-events: none; white-space: nowrap; text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
}

.cv-preview {
    background: white; color: #1e293b;
    width: 21cm; min-height: 29.7cm; 
    margin: 0 auto; box-shadow: 0 0 20px rgba(0,0,0,0.5);
    text-align: left; position: relative;
    /* Print fidelity */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Base formatting for AI HTML output */
.cv-preview h1 { font-size: 24pt; margin-bottom: 5px; }
.cv-preview h2 { font-size: 14pt; margin-top: 20px; margin-bottom: 10px; text-transform: uppercase; border-bottom: 2px solid var(--cv-color); padding-bottom: 5px; color: var(--cv-color); }
.cv-preview h3 { font-size: 12pt; margin-top: 15px; margin-bottom: 5px; color: #334155; }
.cv-preview p { margin-bottom: 10px; color: #475569; text-align: justify; }
.cv-preview ul { margin-left: 20px; margin-bottom: 15px; color: #475569; }
.cv-preview li { margin-bottom: 5px; text-align: justify; }

/* Sobrescribir justificado en barras laterales */
.cv-sidebar p, .cv-sidebar li { text-align: left; }

/* ==========================================
   PLANTILLAS PROFESIONALES
========================================== */

/* 1. MODELO MODERNO (Dos columnas con barra lateral) */
.cv-modern {
    font-family: 'Inter', 'Arial', sans-serif;
    display: flex; flex-direction: column;
}
.cv-modern .cv-header {
    background-color: var(--cv-color);
    color: white;
    padding: 40px 50px;
}
.cv-modern .cv-header h1 { font-size: 32pt; font-weight: 700; margin-bottom: 10px; letter-spacing: -1px; }
.cv-modern .cv-header .contact-info { font-size: 11pt; opacity: 0.9; }

.cv-modern .cv-layout {
    display: flex; flex: 1;
}
.cv-modern .cv-sidebar {
    width: 30%;
    background-color: #f1f5f9;
    padding: 30px;
    border-right: 1px solid #e2e8f0;
}
.cv-modern .cv-main {
    width: 70%;
    padding: 40px 50px;
}
.cv-modern h2 {
    font-size: 14pt; font-weight: 700; text-transform: uppercase;
    color: var(--cv-color); border-bottom: 2px solid var(--cv-color);
    padding-bottom: 5px; margin-bottom: 15px; margin-top: 20px;
}
.cv-modern .cv-sidebar h2 { border-bottom: 2px solid #cbd5e1; color: #334155; }
.cv-modern .cv-item { margin-bottom: 20px; }
.cv-modern h3 { font-size: 12pt; color: #0f172a; margin-bottom: 2px; }
.cv-modern .cv-date { font-size: 10pt; color: #64748b; font-style: italic; margin-bottom: 8px; }
.cv-modern p, .cv-modern ul { font-size: 10.5pt; color: #334155; line-height: 1.6; text-align: justify; }
.cv-modern ul { padding-left: 20px; }
.cv-modern li { margin-bottom: 6px; text-align: justify; }
.cv-modern .cv-sidebar ul { list-style-type: square; }


/* 2. MODELO MINIMALISTA (Flujo Elegante, una columna centrada) */
.cv-minimal {
    font-family: 'Georgia', 'Times New Roman', serif;
    padding: 50px 70px;
}
.cv-minimal .cv-header {
    text-align: center;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.cv-minimal .cv-header h1 {
    font-size: 34pt; font-weight: normal; color: #111;
    letter-spacing: 2px; text-transform: uppercase;
}
.cv-minimal .cv-header .contact-info { font-size: 10pt; color: #475569; margin-top: 10px; }
.cv-minimal .cv-layout { display: block; } /* Sin columnas */
.cv-minimal .cv-sidebar { display: block; width: 100%; background: transparent; padding: 0; border: none; margin-bottom: 30px; }
.cv-minimal .cv-main { display: block; width: 100%; padding: 0; }
.cv-minimal h2 {
    font-size: 13pt; font-style: italic; color: var(--cv-color);
    text-align: center; margin-top: 25px; margin-bottom: 15px;
    position: relative;
}
.cv-minimal h2::after {
    content: ''; display: block; width: 40px; height: 2px;
    background: var(--cv-color); margin: 8px auto 0;
}
.cv-minimal .cv-item { margin-bottom: 25px; }
.cv-minimal h3 { font-size: 12pt; font-weight: bold; color: #111; display: inline-block; }
.cv-minimal .cv-date { font-size: 10pt; color: #64748b; display: inline-block; float: right; }
.cv-minimal p, .cv-minimal ul { font-size: 11pt; color: #333; line-height: 1.7; margin-top: 5px; text-align: justify; }
.cv-minimal ul { padding-left: 20px; }
.cv-minimal li { margin-bottom: 8px; text-align: justify; }


/* 3. MODELO CREATIVO (Bloques dinámicos, borde grueso izquierdo) */
.cv-creative {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    border-left: 25px solid var(--cv-color);
    padding: 40px 50px;
}
.cv-creative .cv-header { margin-bottom: 40px; }
.cv-creative .cv-header h1 {
    font-size: 38pt; font-weight: 800; color: #0f172a;
    line-height: 1; margin-bottom: 10px;
}
.cv-creative .cv-header .contact-info { font-size: 11pt; font-weight: 600; color: var(--cv-color); }
.cv-creative .cv-layout { display: flex; gap: 40px; }
.cv-creative .cv-sidebar { width: 35%; }
.cv-creative .cv-main { width: 65%; }
.cv-creative h2 {
    font-size: 12pt; font-weight: bold; text-transform: uppercase;
    background-color: var(--cv-color); color: white;
    display: inline-block; padding: 6px 16px; border-radius: 4px;
    margin-top: 20px; margin-bottom: 15px;
}
.cv-creative .cv-item {
    background: #f8fafc; padding: 15px; border-radius: 8px;
    border-left: 3px solid var(--cv-color); margin-bottom: 20px;
}
.cv-creative h3 { font-size: 13pt; color: #0f172a; }
.cv-creative .cv-date { font-size: 10pt; font-weight: 600; color: #64748b; margin-bottom: 10px; }
.cv-creative p, .cv-creative ul { font-size: 10pt; color: #334155; line-height: 1.6; text-align: justify; }
.cv-creative ul { padding-left: 20px; }
.cv-creative li { margin-bottom: 5px; text-align: justify; }


/* 4. MODELO EJECUTIVO (Una columna estricta, borde superior sólido) */
.cv-executive {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    padding: 60px 80px;
}
.cv-executive .cv-header {
    border-top: 8px solid var(--cv-color);
    padding-top: 20px;
    margin-bottom: 40px;
}
.cv-executive .cv-header h1 {
    font-size: 32pt; font-weight: 800; color: #111;
    letter-spacing: -0.5px; margin-bottom: 5px;
}
.cv-executive .cv-header .contact-info { font-size: 11pt; color: #475569; }
.cv-executive .cv-layout { display: block; }
.cv-executive .cv-sidebar, .cv-executive .cv-main { width: 100%; display: block; padding: 0; }
.cv-executive h2 {
    font-size: 13pt; font-weight: 700; color: var(--cv-color);
    text-transform: uppercase; letter-spacing: 1.5px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 5px; margin-top: 25px; margin-bottom: 15px;
}
.cv-executive .cv-item { margin-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.cv-executive h3 { font-size: 12pt; font-weight: 700; color: #1e293b; width: 70%; margin-bottom: 5px; }
.cv-executive .cv-date { font-size: 10pt; font-weight: 600; color: #64748b; width: 30%; text-align: right; }
.cv-executive p, .cv-executive ul { width: 100%; font-size: 11pt; color: #334155; line-height: 1.6; text-align: justify; }
.cv-executive ul { padding-left: 20px; margin-top: 5px; }
.cv-executive li { margin-bottom: 5px; }

/* 5. MODELO ELEGANTE (Dos columnas, barra derecha, tonos suaves) */
.cv-elegant {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    display: flex; flex-direction: column; background-color: #fafafa;
}
.cv-elegant .cv-header {
    text-align: center; padding: 50px;
    background-color: white; border-bottom: 1px solid #e2e8f0;
}
.cv-elegant .cv-header h1 {
    font-size: 36pt; font-weight: 400; color: #0f172a; margin-bottom: 15px;
    position: relative; display: inline-block;
}
.cv-elegant .cv-header h1::after, .cv-elegant .cv-header h1::before {
    content: ''; position: absolute; left: 0; width: 100%; height: 1px; background: var(--cv-color);
}
.cv-elegant .cv-header h1::before { top: -10px; }
.cv-elegant .cv-header h1::after { bottom: -5px; }
.cv-elegant .cv-header .contact-info { font-size: 11pt; color: #64748b; font-style: italic; }
.cv-elegant .cv-layout { display: flex; flex-direction: row-reverse; flex: 1; }
.cv-elegant .cv-sidebar { width: 30%; background-color: white; padding: 40px; border-left: 1px dashed #cbd5e1; }
.cv-elegant .cv-main { width: 70%; padding: 40px 50px; }
.cv-elegant h2 {
    font-size: 14pt; font-weight: 600; color: var(--cv-color);
    text-transform: uppercase; margin-top: 20px; margin-bottom: 15px;
}
.cv-elegant .cv-item { margin-bottom: 25px; }
.cv-elegant h3 { font-size: 13pt; font-weight: 600; color: #0f172a; margin-bottom: 3px; }
.cv-elegant .cv-date { font-size: 10.5pt; color: #64748b; font-style: italic; margin-bottom: 10px; }
.cv-elegant p, .cv-elegant ul { font-size: 11pt; color: #334155; line-height: 1.7; text-align: justify; }
.cv-elegant .cv-sidebar p, .cv-elegant .cv-sidebar li { text-align: right; }
.cv-elegant .cv-sidebar ul { list-style: none; padding-left: 0; }
.cv-elegant ul { padding-left: 20px; }
.cv-elegant li { margin-bottom: 8px; }

/* 6. MODELO DIVERTIDO (Diseño de tarjetas redondeadas) */
.cv-fun {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc; padding: 40px; border-radius: 20px;
}
.cv-fun .cv-header {
    background-color: var(--cv-color); color: white;
    padding: 30px; border-radius: 15px; text-align: center; margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.cv-fun .cv-header h1 { font-size: 34pt; font-weight: 900; letter-spacing: -1px; margin-bottom: 5px; }
.cv-fun .cv-header .contact-info { font-size: 12pt; font-weight: 500; opacity: 0.9; }
.cv-fun .cv-layout { display: flex; flex-direction: column; gap: 20px; }
.cv-fun .cv-sidebar, .cv-fun .cv-main { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.cv-fun .cv-section {
    background: white; padding: 25px; border-radius: 15px;
    border: 2px solid var(--cv-color); box-shadow: 4px 4px 0 var(--cv-color);
}
.cv-fun h2 {
    font-size: 16pt; font-weight: 800; color: var(--cv-color);
    text-transform: uppercase; margin-bottom: 15px; border-bottom: 2px dashed #e2e8f0; padding-bottom: 10px;
}
.cv-fun .cv-item { margin-bottom: 20px; }
.cv-fun .cv-item:last-child { margin-bottom: 0; }
.cv-fun h3 { font-size: 13pt; font-weight: 700; color: #0f172a; margin-bottom: 5px; }
.cv-fun .cv-date { font-size: 11pt; font-weight: 600; color: #64748b; background: #f1f5f9; display: inline-block; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; }
.cv-fun p, .cv-fun ul { font-size: 11pt; color: #334155; line-height: 1.6; text-align: justify; }
.cv-fun ul { padding-left: 20px; }
.cv-fun li { margin-bottom: 8px; }


/* Print Styles & Protection */
#print-block-message { display: none; }

@media print {
    body.locked-print * { display: none !important; }
    body.locked-print #print-block-message { display: block !important; color: black; text-align: center; margin-top: 50px; }
    body.locked-print #print-block-message h1 { font-size: 24pt; color: red; }
    
    body:not(.locked-print) * { visibility: hidden; }
    body:not(.locked-print) .cv-preview, body:not(.locked-print) .cv-preview * { visibility: visible; }
    body:not(.locked-print) .cv-preview {
        position: absolute; left: 0; top: 0; margin: 0; padding: 0; box-shadow: none; width: 100%;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #main-logo {
        position: static !important;
        display: block !important;
        margin: 0 auto 20px auto !important;
        width: 100px !important;
        height: 100px !important;
    }
    .dashboard-header h1 { font-size: 2.8rem; }
    #app-dashboard.active { display: block; padding-top: 40px; text-align: center; }
    
    /* CV Templates Mobile Fix */
    .cv-layout { flex-direction: column !important; }
    .cv-sidebar, .cv-main { width: 100% !important; border-left: none !important; border-right: none !important; }
    
    /* Layout */
    .app-view.active { padding: 30px 15px; }
    .toolbar { flex-direction: column; align-items: flex-start; }
    .theme-popover { width: 100%; left: 0; }
}
