/* Configuración General */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    display: flex; 
    height: 100vh; 
    background: #f4f7f6; 
    color: #333;
}

/* Sidebar / Menú Lateral */
.sidebar { 
    width: 220px; 
    background: #2c3e50; 
    color: white; 
    padding: 25px; 
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 1px solid #34495e;
    padding-bottom: 10px;
}

/* Botón Principal "Nuevo Objetivo" */
.btn-main { 
    width: 100%; 
    padding: 12px; 
    background: #27ae60; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: background 0.3s;
}

.btn-main:hover {
    background: #219150;
}

/* Área Principal de Contenido */
.main { 
    flex-grow: 1; 
    padding: 40px; 
    overflow-y: auto; 
}

/* Tarjeta de Objetivo (Main Task) */
.task-card { 
    background: white; 
    margin-bottom: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    padding: 20px; 
    border-left: 5px solid #3498db; 
}

.main-task-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

/* Badge de Progreso (0/0 Done) */
.progress-badge { 
    background: #ecf0f1; 
    padding: 4px 12px; 
    border-radius: 15px; 
    font-size: 0.85em; 
    font-weight: bold; 
    color: #2c3e50;
}

/* Botón circular azul "+" */
.btn-add-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: transform 0.2s, background 0.2s;
}

.btn-add-circle:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Botón Tacho de Basura Rojo */
.btn-delete {
    width: 28px;              /* Mismo ancho que .btn-add-circle */
    height: 28px;             /* Mismo alto que .btn-add-circle */
    border-radius: 50%;       /* Para hacerlo perfectamente circular */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;          /* Ajuste leve del tamaño del emoji para que entre bien */
    margin-left: 10px;
    color: #e74c3c;
    display: inline-flex;     /* Para centrar el emoji */
    align-items: center;      /* Centrado vertical */
    justify-content: center;  /* Centrado horizontal */
    transition: transform 0.1s;
    opacity: 0.7;
    padding: 0;               /* Evita que el padding afecte el tamaño del círculo */
}

.btn-delete:hover { 
    transform: scale(1.2); 
    opacity: 1;
    background-color: rgba(231, 76, 60, 0.1); /* Opcional: un ligero fondo rojo al pasar el mouse */
}

/* Items de Subtareas */
.subtask-item { 
    display: flex; 
    align-items: center; 
    margin: 5px 0; 
    padding: 8px; 
}

.subtask-text { 
    flex-grow: 1; 
    cursor: pointer; 
    margin-left: 10px;
}

.subtask-text:hover {
    color: #3498db;
}

.completed { 
    text-decoration: line-through; 
    color: #bdc3c7; 
}

/* Botones de Estado */
.status-btn { 
    padding: 5px 10px; 
    margin-right: 10px; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer; 
    font-size: 0.75em; 
    color: white; 
    min-width: 90px;
    font-weight: bold;
}

.btn-pendiente { background: #95a5a6; }
.btn-realizando { background: #f39c12; }
.btn-completada { background: #2ecc71; }

/* Etiqueta de Usuario (Mati, Nacho, Bauti) */
.user-tag { 
    font-size: 0.7em; 
    background: #34495e; 
    color: white; 
    padding: 3px 8px; 
    border-radius: 12px; 
    margin-left: 10px;
    text-transform: uppercase;
}

/* Área de Comentarios (Desplegable) */
.comment-section {
    width: 95%;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 10px;
    background: #fdfdfd;
    border: 1px dashed #ddd;
    border-radius: 5px;
}

.comment-area {
    width: 100%;
    height: 70px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.9em;
    resize: vertical;
    box-sizing: border-box;
}

/* Ventanas Modales (Pop-ups) */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(2px);
}

.modal-content { 
    background: white; 
    margin: 10% auto; 
    padding: 30px; 
    width: 320px; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content h3 { margin-top: 0; color: #2c3e50; }

.modal-content button { 
    width: 100%; 
    padding: 12px; 
    margin: 8px 0; 
    cursor: pointer; 
    border-radius: 6px;
    border: 1px solid #ddd;
    font-weight: bold;
}

/* Ajuste del Input en el Modal */
.modal-content input { 
    width: 100%; 
    padding: 15px; /* Más alto para que sea fácil de tocar */
    margin-bottom: 20px; 
    border: 2px solid #ddd; /* Borde más marcado */
    border-radius: 8px;
    font-size: 1.1em; /* Letra más grande */
    box-sizing: border-box; /* Evita que se salga del borde */
}

/* Colores de los botones de Usuario */
.btn-user {
    color: white;
    font-weight: bold;
    border: none;
    transition: filter 0.2s;
}

.btn-user:hover {
    filter: brightness(0.9); /* Se oscurece un poco al pasar el mouse */
}

.btn-mati { background-color: #3498db !important; } /* Azul */
.btn-nacho { background-color: #9b59b6 !important; } /* Violeta */
.btn-bauti { background-color: #e67e22 !important; } /* Naranja */

/* Etiquetas de nombre en la lista (User Tags) con los mismos colores */
.tag-mati { background-color: #3498db !important; }
.tag-nacho { background-color: #9b59b6 !important; }
.tag-bauti { background-color: #e67e22 !important; }