/* Base animations and glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .glass-panel {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

.float-anim {
    animation: floating 3s ease-in-out infinite;
}

.pulse-soft {
    animation: pulseSoft 2s infinite;
}

/* Enhanced Hover States */
.hover-scale {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}
.hover-scale:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseSoft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #9ca3af; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7280; 
}
.dark ::-webkit-scrollbar-thumb {
    background: #4b5563; 
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280; 
}

/* ==========================================================================
   SWEETALERT2 PREMIUM THEME OVERRIDES (APPLIES TO ENTIRE APP)
   ========================================================================== */

/* The Modal Container */
.swal2-popup {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Inter', sans-serif !important;
    padding: 2rem !important;
}

.dark .swal2-popup {
    background: rgba(31, 41, 55, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    color: #f3f4f6 !important;
}

/* Typography */
.swal2-title {
    font-weight: 800 !important;
    font-size: 1.75rem !important;
    color: #111827 !important;
    padding-bottom: 0.5rem !important;
}

.dark .swal2-title {
    color: #f9fafb !important;
}

.swal2-html-container {
    color: #4b5563 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.dark .swal2-html-container {
    color: #9ca3af !important;
}

/* Buttons */
.swal2-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

.swal2-cancel {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem !important;
}

.swal2-cancel:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

.dark .swal2-cancel {
    background: #374151 !important;
    color: #d1d5db !important;
}

.dark .swal2-cancel:hover {
    background: #4b5563 !important;
    color: #f9fafb !important;
}

/* Icons */
.swal2-icon {
    border-width: 3px !important;
}

/* Smooth Animation */
.swal2-show {
    animation: swal2-show-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes swal2-show-bounce {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
