/* =====================================
   Reset y fuente
===================================== */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* =====================================
   Fondo general de la página
===================================== */
body {
    display: flex;
    background: #000 url('../Imagenes/fondo.png') center/cover no-repeat;
    color: white;
}

/* =====================================
   BARRA LATERAL
===================================== */
.sidebar {
    width: 230px;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

/* Logo arriba */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Menu central y de abajo */
.menu, .bottom-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botones de menú */
.menu-btn {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: 0.2s;
}

.menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* =====================================
   CONTENIDO PRINCIPAL
===================================== */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Recuadro oscuro semi-transparente consistente */
.content-box {
    background: rgba(30,30,30,0.95);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

/* =====================================
   TABLA USUARIOS
===================================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(40,40,40,0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border-radius: 8px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #555;
    color: #fff;
}

/* =====================================
   FORMULARIOS E INPUTS
===================================== */
input, select, button {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #555;
    margin: 2px 0;
    font-size: 1rem;
    background: rgba(50,50,50,0.9);
    color: #fff;
}

button {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: scale(1.05);
}

/* =====================================
   TARJETAS DE TAREAS
===================================== */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    width: 100%;
    background: rgba(30,30,30,0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    color: #fff;
}

.task-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    text-transform: uppercase;
}

.task-actions {
    margin-top: 10px;
}

.task-actions button {
    margin-right: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    color: white;
}

.task-actions button:hover {
    transform: scale(1.05);
}

/* Colores según estado */
[data-estado="pendiente"] .task-status {
    background: #e74c3c;
}

[data-estado="progreso"] .task-status {
    background: #f1c40f;
    color: #000;
}

[data-estado="terminado"] .task-status {
    background: #2ecc71;
}

/* Botones de estado */
.task-actions button:nth-child(1) { background: #e74c3c; }
.task-actions button:nth-child(2) { background: #f1c40f; color:#000; }
.task-actions button:nth-child(3) { background: #2ecc71; }
.task-actions button:nth-child(4) { background: #95a5a6; }

/* =====================================
   LOGIN
===================================== */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 url('../Imagenes/fondo.png') center/cover no-repeat;
    color: white;
    z-index: 1000;
}

.login-box {
    background: rgba(30,30,30,0.95);
    padding: 60px 50px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
    width: 400px;
    max-width: 90%;
    text-align: center;
}

.login-box img {
    width: 150px;
    margin-bottom: 25px;
}

.login-box h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    border: 1px solid #555;
    background: rgba(50,50,50,0.9);
    color: white;
    font-size: 1.1rem;
}

.login-box button {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    font-size: 1.2rem;
    transition: 0.2s;
}

.login-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.error-msg {
    color: #e74c3c;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1rem;
}
