/* ==========================================
   SISTEMA DE NOTIFICACIONES TOAST
   ========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 450px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 16px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    border-left: 4px solid;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Tipos de toast */
.toast-success {
    border-left-color: var(--color-success);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(34, 197, 94, 0.1) 100%);
}

.toast-success .toast-icon {
    color: var(--color-success);
}

.toast-error {
    border-left-color: var(--color-secondary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.toast-error .toast-icon {
    color: var(--color-secondary);
}

.toast-warning {
    border-left-color: #F59E0B;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.toast-warning .toast-icon {
    color: #F59E0B;
}

.toast-info {
    border-left-color: var(--color-primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(56, 189, 248, 0.1) 100%);
}

.toast-info .toast-icon {
    color: var(--color-primary);
}

/* Modal de confirmación */
.toast-confirm-modal,
.toast-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.toast-confirm-modal.show,
.toast-prompt-modal.show {
    opacity: 1;
    pointer-events: all;
}

.toast-confirm-modal.hide,
.toast-prompt-modal.hide {
    opacity: 0;
    pointer-events: none;
}

.toast-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.toast-confirm-box {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-confirm-modal.show .toast-confirm-box,
.toast-prompt-modal.show .toast-confirm-box {
    transform: scale(1);
}

.toast-confirm-icon {
    text-align: center;
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.toast-confirm-message {
    color: var(--text-primary);
    font-size: 16px;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

.toast-prompt-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 24px;
    outline: none;
    transition: border-color 0.2s;
}

.toast-prompt-input:focus {
    border-color: var(--color-secondary);
}

.toast-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.toast-confirm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.toast-confirm-ok {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
}

.toast-confirm-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.toast-confirm-cancel {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.toast-confirm-cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    .toast-confirm-box {
        padding: 24px;
        width: 95%;
    }

    .toast-confirm-buttons {
        flex-direction: column;
    }

    .toast-confirm-btn {
        width: 100%;
    }
}

