/* Notification and Alert System Styles */

/* Base container for Toasts */
#notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 450px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

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

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Success Toast */
.toast-success .toast-icon {
    background: rgba(0, 125, 255, 0.15);
    color: #007DFF;
}

.toast-success {
    border-left: 4px solid #007DFF;
}

/* Warning Toast */
.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.toast-warning {
    border-left: 4px solid #F59E0B;
}

/* Error Toast */
.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.toast-error {
    border-left: 4px solid #EF4444;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #8dacce;
}

/* --- Modal Alerts (Blocking) --- */
#modal-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 1, 4, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#modal-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-alert {
    width: 90%;
    max-width: 400px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 40px rgba(0, 125, 255, 0.1);
}

#modal-alert-overlay.show .modal-alert {
    transform: scale(1);
}

.modal-alert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-alert-icon span {
    font-size: 32px;
}

.modal-alert-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.modal-alert-body {
    font-size: 14px;
    color: #8dacce;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-alert-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-alert-primary {
    background: #007DFF;
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.2s;
    box-shadow: 0 8px 15px rgba(0, 125, 255, 0.3);
}

.btn-alert-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 125, 255, 0.4);
}

.btn-alert-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.2s;
}

.btn-alert-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}