
/* Notifications & Toast System */
#notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.toast {
    min-width: 350px;
    max-width: 500px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast span {
    flex: 1;
    line-height: 1.5;
}

.toast-success { 
    border-left: 4px solid #22C55E; 
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}
.toast-success i { color: #22C55E; }

.toast-error { 
    border-left: 4px solid #EF4444; 
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}
.toast-error i { color: #EF4444; }

.toast-warning { 
    border-left: 4px solid #FF2D20; 
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}
.toast-warning i { color: #FF2D20; }

.toast-info { 
    border-left: 4px solid #007FFF; 
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}
.toast-info i { color: #007FFF; }

/* Loader Animation */
.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Premium Modals (Confirm & Prompt) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-content .form-input {
    margin-bottom: 2rem;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: all 0.2s;
}

.modal-content .form-input:focus {
    border-color: #007FFF;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 127, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}
