/* =================================================================== */
/* === ESTILOS PARA EL CONTENEDOR DE NOTIFICACIONES (AÑADIDOS) === */
/* =================================================================== */

#notification-container {
    position: fixed;
    top: 90px; /* Un poco más abajo para no chocar con el header */
    right: 20px;
    z-index: 11000; /* Valor MÁS ALTO que el del overlay (10000) */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinea las notificaciones a la derecha */
    gap: 10px;
    pointer-events: none; /* Permite hacer clic a través del contenedor vacío */
}

.notification {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary-color);
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: auto; /* Restaura los eventos de clic para la notificación en sí */
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification span {
    flex-grow: 1; /* El texto ocupa el espacio disponible */
}

.notification .close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    margin-left: 1rem;
    transition: color 0.2s ease;
}

.notification .close-btn:hover {
    color: var(--text-primary);
}

/* Colores por tipo de notificación */
.notification.success { border-left-color: var(--success-color); }
.notification.error { border-left-color: var(--danger-color); }
.notification.warning { border-left-color: var(--warning-color); }
.notification.info { border-left-color: var(--primary-color); }


/* =================================================================== */
/* === ESTILOS PARA DIÁLOGO DE CONFIRMACIÓN Y PROMPT (ORIGINALES) === */
/* =================================================================== */

.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.confirmation-overlay.visible {
    opacity: 1;
}

.confirmation-overlay.closing {
    opacity: 0;
}

/* Estilo unificado para ambos tipos de diálogo */
.confirmation-dialog, .prompt-dialog {
    background-color: var(--card-bg); /* Usar variables de tu tema */
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    text-align: center;
    border: 1px solid var(--card-border);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.confirmation-overlay.visible .confirmation-dialog,
.confirmation-overlay.visible .prompt-dialog {
    transform: scale(1);
}

.confirmation-overlay.closing .confirmation-dialog,
.confirmation-overlay.closing .prompt-dialog {
    transform: scale(0.9);
}

.confirmation-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.confirmation-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem; /* Añadido para separar del input en prompt */
}

.confirmation-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirmation-actions .btn-confirm {
    background-color: var(--primary-color); /* Color principal de la app */
    color: #fff;
}
.confirmation-actions .btn-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.confirmation-actions .btn-cancel {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.confirmation-actions .btn-cancel:hover {
    background-color: var(--hover-color);
}


/* === ESTILOS PARA EL PROMPT === */
.prompt-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--card-border);
    background-color: var(--body-bg);
    color: var(--text-primary);
    border-radius: 8px;
    box-sizing: border-box;
    margin-top: 1rem;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px hsla(var(--primary-hue), 90%, 50%, 0.2);
}