/* ================================================
   ADMIN Inversiones - Dark Theme Advanced Styles
   ================================================ */

:root {
    --bg-primary: #020617;
    --bg-card: #0f172a;
    --border-subtle: rgba(148, 163, 184, 0.1);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.15);
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --text-muted: #94a3b8;
}

* { scrollbar-width: thin; scrollbar-color: #334155 #0f172a; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: #0f172a; }
*::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

body {
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.03), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 130, 246, 0.02), transparent);
}

.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

/* Tablas y listas */
.stock-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stock-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

/* Status dot */
.status-dot-ok {
    background: #10b981;
    animation: pulse-glow 2s infinite;
}

.status-dot-error {
    background: #ef4444;
}

/* Input styling */
.invest-input {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.2s ease;
}
.invest-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

/* Chart period buttons */
.period-btn {
    transition: all 0.15s ease;
}
.period-btn.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

/* News cards */
.news-card {
    transition: all 0.2s ease;
}
.news-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* Loading shimmer */
.shimmer {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ApexCharts custom tooltip */
.apexcharts-tooltip {
    background: #0f172a !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}
.apexcharts-tooltip-title {
    background: #1e293b !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
    font-family: 'Inter', sans-serif !important;
}
.apexcharts-text {
    fill: #94a3b8 !important;
    font-family: 'Inter', sans-serif !important;
}
.apexcharts-gridline {
    stroke: rgba(148, 163, 184, 0.05) !important;
}
.apexcharts-xaxis-tick, .apexcharts-yaxis-tick {
    stroke: rgba(148, 163, 184, 0.1) !important;
}
.apexcharts-legend-text {
    color: #94a3b8 !important;
    font-family: 'Inter', sans-serif !important;
}
.apexcharts-menu {
    background: #0f172a !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
}
.apexcharts-menu-item:hover {
    background: #1e293b !important;
}

/* Number counter animation helper */
.count-up {
    transition: color 0.3s ease;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .glass-panel { border-radius: 1rem; padding: 1rem; }
}
