/* Enhanced Toast Styles */
:root {
    --toast-success: #28a745;
    --toast-error: #dc3545;
    --toast-warning: #ffc107;
    --toast-info: #17a2b8;
    --toast-validation: #fd7e14;
    --toast-system: #6f42c1;
    --toast-priority-low: #6c757d;
    --toast-priority-normal: #17a2b8;
    --toast-priority-high: #fd7e14;
    --toast-priority-critical: #dc3545;
}

.toast-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 20px !important;
}

.toast-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

.toast-message {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.5 !important;
}

.toast-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
}

/* Toast Types */
.toast-success .swal2-icon.swal2-success {
    border-color: var(--toast-success) !important;
    color: var(--toast-success) !important;
}

.toast-error .swal2-icon.swal2-error {
    border-color: var(--toast-error) !important;
    color: var(--toast-error) !important;
}

.toast-warning .swal2-icon.swal2-warning {
    border-color: var(--toast-warning) !important;
    color: var(--toast-warning) !important;
}

.toast-info .swal2-icon.swal2-info {
    border-color: var(--toast-info) !important;
    color: var(--toast-info) !important;
}

.toast-validation .swal2-icon.swal2-warning {
    border-color: var(--toast-validation) !important;
    color: var(--toast-validation) !important;
}

.toast-system .swal2-icon.swal2-info {
    border-color: var(--toast-system) !important;
    color: var(--toast-system) !important;
}

/* Priority Levels */
.toast-priority-low {
    opacity: 0.9;
}

.toast-priority-normal {
    opacity: 1;
}

.toast-priority-high {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25) !important;
}

.toast-priority-critical {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.08); }
}

/* Persistent Toasts */
.toast-persistent {
    border: 2px solid #667eea !important;
}

.toast-urgent {
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Progress Bar */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    height: 3px !important;
}

/* Action Buttons */
.toast-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.toast-action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.toast-action-btn:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.toast-action-btn:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.toast-action-btn:not(:first-child) {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.toast-action-btn:not(:first-child):hover {
    background: #e9ecef;
}

/* Swal2 Theme Override */
.swal2-container {
    z-index: 100000 !important;
}

.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-popup {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
    }

    .toast-title {
        font-size: 15px !important;
    }

    .toast-message {
        font-size: 13px !important;
    }

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

    .toast-action-btn {
        width: 100%;
        text-align: center;
    }
}