/* --- ESTILOS GENERALES Y DEL DASHBOARD --- */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header h1 {
    color: #FFC107;
    margin: 0;
    font-size: 2.5em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
}

.stat-card h3 {
    margin-top: 0;
    color: #aaa;
    font-size: 1em;
    font-weight: normal;
}

.stat-card p {
    margin-bottom: 0;
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
}

.workers-section {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.workers-section h2 {
    margin-top: 0;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 10px;
}

.worker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.worker:last-child {
    border-bottom: none;
}

.worker-name {
    font-weight: bold;
}

.worker-hashrate {
    color: #4CAF50;
    font-weight: bold;
}

.worker-status {
    width: 12px;
    height: 12px;
    background-color: #f44336;
    border-radius: 50%;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 0.9em;
}

/* --- ESTILOS PARA LA PÁGINA DE LOGIN --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #333;
}

.login-container h1 {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
    font-size: 14px;
}

.input-group input {
    width: 95%; /* Ajuste para padding */
    padding: 10px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #FFC107;
    border: none;
    border-radius: 4px;
    color: #121212;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #ffab00;
}

.error-message {
    color: #ff4d4d;
    margin-top: 15px;
}

/* --- ESTILOS PARA EL HEADER DEL DASHBOARD --- */
.header-user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    padding: 5px 10px;
    border-radius: 5px;
}

.logout-button {
    background-color: #444;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 15px;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #ff4d4d;
}

/* ===== ESTILOS AÑADIDOS ===== */

/* Estilo para el sub-texto en las tarjetas (ej. BTC/día) */
.sub-stat {
    color: #aaa;
    font-size: 0.6em; /* Más pequeño que el texto principal */
    font-weight: normal;
}

/* Estilos para la nueva sección de información de pago */
.payout-section {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-top: 40px; /* Espacio para separarlo de la sección de workers */
}

.payout-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 10px;
}

.payout-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    font-size: 1em;
    border-bottom: 1px solid #333;
}

.payout-info:last-child {
    border-bottom: none;
}

.payout-info span:first-child {
    color: #aaa; /* Color más tenue para la etiqueta */
}

.payout-info span:last-child {
    font-weight: bold;
    font-family: monospace; /* Buena fuente para direcciones de wallet */
    word-break: break-all; /* Para que la wallet no se salga de la caja en móviles */
}