/* ===================================
   Modern Toastr Notification Styles
   =================================== */

/* Toast Container */
.toast-top-right {
    top: 20px;
    right: 20px;
}

.toast-bottom-right {
    right: 20px;
    bottom: 20px;
}

.toast-top-left {
    top: 20px;
    left: 20px;
}

.toast-bottom-left {
    bottom: 20px;
    left: 20px;
}

#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

#toast-container > * {
    pointer-events: auto;
}

#toast-container > div {
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    margin: 0 0 12px;
    padding: 15px 20px 15px 70px;
    width: 380px;
    border-radius: 12px;
    background-position: 20px center !important;
    background-repeat: no-repeat !important;
    background-image: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    opacity: 0.95;
    backdrop-filter: blur(10px);
}

#toast-container > div:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    opacity: 1;
    cursor: pointer;
}

/* Success Toast */
#toast-container > .toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    background-image: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-left: 4px solid #34d399;
}

#toast-container > .toast-success::before {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25) !important;
    background-image: none !important;
    border-radius: 50%;
}

/* Error Toast */
#toast-container > .toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-left: 4px solid #f87171;
}

#toast-container > .toast-error::before {
    content: '✕';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25) !important;
    background-image: none !important;
    border-radius: 50%;
}

/* Info Toast */
#toast-container > .toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    background-image: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-left: 4px solid #60a5fa;
}

#toast-container > .toast-info::before {
    content: 'ℹ';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25) !important;
    background-image: none !important;
    border-radius: 50%;
}

/* Warning Toast */
#toast-container > .toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    background-image: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-left: 4px solid #fbbf24;
}

#toast-container > .toast-warning::before {
    content: '⚠';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25) !important;
    background-image: none !important;
    border-radius: 50%;
}

/* Toast Title */
#toast-container > div .toast-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    color: #ffffff;
}

/* Toast Message */
#toast-container > div .toast-message {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    word-wrap: break-word;
}

/* Close Button */
#toast-container > div .toast-close-button {
    position: relative;
    right: -0.5em;
    top: -0.5em;
    float: right;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    opacity: 0.8;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

#toast-container > div .toast-close-button:hover,
#toast-container > div .toast-close-button:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
}

/* Progress Bar */
#toast-container > div .toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0.8;
    border-radius: 0 0 12px 12px;
}

/* Responsive */
@media all and (max-width: 240px) {
    #toast-container > div {
        padding: 12px 15px 12px 60px;
        width: 100%;
    }
}

@media all and (min-width: 241px) and (max-width: 480px) {
    #toast-container > div {
        padding: 12px 15px 12px 60px;
        width: 100%;
    }
}

@media all and (min-width: 481px) and (max-width: 768px) {
    #toast-container > div {
        padding: 15px 20px 15px 70px;
        width: 350px;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #toast-container > div {
        width: calc(100vw - 40px) !important;
        margin: 0 0 12px !important;
    }
    
    .toast-top-right {
        top: 20px !important;
        right: 20px !important;
        left: 20px !important;
    }
    
    #toast-container > .toast-success::before,
    #toast-container > .toast-error::before,
    #toast-container > .toast-info::before,
    #toast-container > .toast-warning::before {
        width: 32px;
        height: 32px;
        font-size: 20px;
        left: 15px;
    }
    
    #toast-container > div {
        padding-left: 60px !important;
    }
}

/* Custom Alert Styles */
.alert {
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #047857;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #2563eb;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

/* SweetAlert2 Customization */
.swal2-popup {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: inherit;
}

.swal2-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
}

.swal2-content {
    font-size: 1rem;
    color: #6b7280;
}

.swal2-confirm {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.6) !important;
}

.swal2-cancel {
    background-color: #e5e7eb !important;
    color: #374151 !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 700 !important;
}

.swal2-cancel:hover {
    background-color: #d1d5db !important;
}
