:root {
    --bg-dark: #000000;
    --card-bg: rgba(0, 229, 255, 0.03);
    --border-color: rgba(0, 229, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #00e5ff;
    --accent-primary: #00e5ff;
    /* Neon Cyan */
    --accent-secondary: #0066ff;
    /* Electric Blue */
    --success: #00ff9d;
    --warning: #ffcc00;
    --danger: #ff0055;
    --font-family: 'Outfit', -apple-system, sans-serif;
    --neon-glow: 0 0 10px rgba(0, 229, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000000;
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}


.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #050505;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

/* Solo para la versión web (desktop) y evitar afectar móvil */
@media (min-width: 768px) {
    .sidebar {
        overflow-y: auto;
        max-height: 100vh;
    }

    /* Scrollbar más delgado y discreto para el menú lateral */
    .sidebar::-webkit-scrollbar {
        width: 5px;
    }
    .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(0, 229, 255, 0.2);
        border-radius: 4px;
    }
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 229, 255, 0.5);
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--card-bg);
    color: var(--text-primary);
}

.nav-link.active i {
    color: var(--accent-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2.5rem;
    max-width: 1400px;
}

header {
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
}

/* Cards & Components */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Asset Type Badges */
.type-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-accion {
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
}

.type-etf {
    color: #0066ff;
    border: 1px solid rgba(0, 102, 255, 0.3);
    background: rgba(0, 102, 255, 0.05);
}

.type-cripto {
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.3);
    background: rgba(0, 255, 157, 0.05);
}

.type-forex {
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.05);
}

.type-futuros {
    color: #ff0055;
    border: 1px solid rgba(255, 0, 85, 0.3);
    background: rgba(255, 0, 85, 0.05);
}

.type-default {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* Badges */
.score-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
}

.score-red {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.score-yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.score-green {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Checklist Images */
.checklist-img-container {
    margin-top: 0.5rem;
    position: relative;
    display: inline-block;
}

.checklist-img-preview {
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.checklist-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    transition: transform 0.2s;
}

.checklist-thumb:hover {
    transform: scale(1.1);
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Auth Specific */
#auth-container input:focus {
    outline: none;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.checklist-full-img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
