/**
 * Toast Notification Styles
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast-container > * {
    pointer-events: auto;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    border-left: 4px solid #3b82f6;
    min-width: 300px;
    transition: all 0.3s ease;
}

.toast-enter {
    opacity: 0;
    transform: translateX(100%);
}

.toast-exit {
    opacity: 0;
    transform: translateX(100%);
}

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

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

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

.toast-info {
    border-left-color: #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* ========================================
   MODAL DIALOG STYLES (Centered Confirmations)
   ======================================== */

.toast-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast-modal-backdrop.toast-modal-show {
    opacity: 1;
}

.toast-modal-backdrop.toast-modal-show .toast-modal {
    transform: scale(1);
    opacity: 1;
}

.toast-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    width: 100%;
    padding: 32px;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: white;
}

.toast-modal-content {
    text-align: center;
    margin-bottom: 32px;
}

.toast-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.toast-modal-message {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.toast-modal-actions {
    display: flex;
    gap: 12px;
}

.toast-modal-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.toast-modal-btn:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.toast-modal-btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.toast-modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.4);
}

.toast-modal-btn-confirm:active {
    transform: translateY(0);
}

.toast-modal-btn-cancel {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.toast-modal-btn-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

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

    .toast {
        min-width: auto;
    }

    .toast-modal {
        padding: 24px;
    }

    .toast-modal-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .toast-modal-title {
        font-size: 18px;
    }

    .toast-modal-message {
        font-size: 14px;
    }

    .toast-modal-actions {
        flex-direction: column-reverse;
    }

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