/* Estilos generales del cuerpo */
body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column; /* Cambiado a columna para que se apilen mejor en móviles */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    gap: 20px; /* Espacio entre los dos cuadros */
}

/* Estilo unificado para ambas tarjetas */
.container, .stats-card {
    background-color: #161b22; /* Color oficial del cuadro azul */
    border: 1px solid #30363d; /* Borde oficial */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 400px;
    width: 90%;
}

/* Tipografía y colores específicos */
h1, .stats-title { 
    color: #58a6ff; /* El azul brillante que te gusta */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.status { 
    font-weight: bold; 
    color: #3fb950; 
}

.budget { 
    font-size: 1.5rem; 
    margin: 1rem 0; 
}

.expense {
    color: #f85149;
}

/* Estilo para los datos financieros */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.dashboard-grid {
    display: flex;
    flex-direction: row; /* Lado a lado */
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Se ajusta en pantallas pequeñas */
}

/* Ajuste de las tarjetas para que midan lo mismo */
.stats-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 300px;
    flex: 1; /* Crecen por igual */
}

/* El brillo neón mejorado que pediste */
.highlight-value {
    color: #39FF14;
    font-weight: bold;
    font-size: 1.4em;
    text-shadow: 
        0 0 5px #39FF14,
        0 0 10px rgba(57, 255, 20, 0.5);
    animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
    from { text-shadow: 0 0 5px #39FF14, 0 0 10px rgba(57, 255, 20, 0.5); }
    to { text-shadow: 0 0 10px #39FF14, 0 0 20px rgba(57, 255, 20, 0.8); }
}

/* Responsividad para celulares */
@media (max-width: 768px) {
    .dashboard-grid {
        flex-direction: column; /* Se apilan si la pantalla es chica */
    }
}

.separator {
    border: 0;
    border-top: 1px solid #30363d;
    margin: 15px 0;
}

.stats-list {
    list-style: none;
    padding: 0;
    text-align: left; /* Lista alineada a la izquierda para mejor lectura */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    color: #8b949e;
}

.stats-list li {
    margin-bottom: 8px;
}

/* Botón CTA */
.cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: #238636;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.cta:hover { 
    background-color: #2ea043; 
}