/* RESET Y BASE */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background-color: #121212; color: #e0e0e0; display: flex; justify-content: center; min-height: 100vh; padding: 20px; }
.container { width: 100%; max-width: 400px; text-align: center; padding-bottom: 50px; }
.hidden { display: none !important; }

/* INPUTS Y BOTONES */
input, select { width: 100%; padding: 12px; margin: 8px 0; border-radius: 8px; border: 1px solid #333; background-color: #1e1e1e; color: white; }
button { width: 100%; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 10px; }
#submit-btn { background-color: #ff4b4b; color: white; }
.btn-small { width: auto; padding: 5px 15px; background-color: #333; color: #ccc; font-size: 0.8rem; }
.btn-action { background: linear-gradient(45deg, #ff4b4b, #ff914d); color: white; font-size: 1.1rem; margin-top: 15px; }
.btn-secondary { background-color: #2c2c2c; color: white; border: 1px solid #444; }

/* TARJETAS */
.card { background-color: #1e1e1e; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.main-card { border: 1px solid #333; }
.team-summary-card { border: 1px solid #444; background: #252525; }

/* ESTADÍSTICAS */
.stats-row { display: flex; justify-content: space-around; margin-bottom: 15px; }
.stat-item { display: flex; flex-direction: column; }
.big-number { font-size: 2.5rem; font-weight: bold; color: #fff; }
.label { font-size: 0.8rem; color: #888; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.custom-file-upload { display: inline-block; padding: 8px 12px; cursor: pointer; background-color: #333; border-radius: 5px; font-size: 0.9rem; margin-top: 10px; }

/* LISTA DE EQUIPOS (DASHBOARD) */
.join-team-box { display: flex; gap: 5px; margin-bottom: 15px; }
.join-team-box input { margin: 0; }
.join-team-box button { margin: 0; width: 40%; }

.team-item {
    background-color: #252525; padding: 15px; border-radius: 8px; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center; 
    border-left: 5px solid #555; cursor: pointer; transition: background 0.2s;
}
.team-item:active { background-color: #333; }
.team-name { font-weight: bold; font-size: 1.1rem; }
.team-score { font-weight: bold; font-size: 0.9rem; }

/* LISTA DE MIEMBROS (DETALLE) */
.member-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid #333;
}
.member-info { text-align: left; }
.member-name { font-weight: bold; display: block; }
.member-streak { font-size: 0.75rem; color: #ff914d; }
.member-stats { text-align: right; font-size: 1.2rem; font-weight: bold; color: #888; }

/* COLORES DE ESTADO (SEMÁFORO) */
.status-red { color: #ff4b4b !important; border-color: #ff4b4b !important; }     /* Rojo */
.status-yellow { color: #ffeb3b !important; border-color: #ffeb3b !important; }  /* Amarillo */
.status-green { color: #4caf50 !important; border-color: #4caf50 !important; }   /* Verde */

.link-text { color: #888; margin-top: 15px; cursor: pointer; text-decoration: underline; font-size: 0.9rem; }

/* MODAL */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background-color: #222; padding: 25px; border-radius: 12px; width: 90%; max-width: 300px; text-align: center; border: 1px solid #444; }
.modal-content h3 { color: white; margin-bottom: 10px; }
#modal-close-btn { background-color: #ff4b4b; color: white; width: 100%; }