/* Modern Glassmorphism 2026 */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-card-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.dark .glass-card {
    background: rgba(28, 28, 30, 0.7);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-card-modern {
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-header {
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.4) !important;
}

.dark .glass-header {
    background: rgba(28, 28, 30, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #007AFF, #5856D6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0051D5, #4A47C7);
}

/* Modern button effects */
button:active {
    transform: scale(0.98);
}

/* Card hover effect - removed lift animation */
.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    transition: box-shadow 0.3s ease;
}

.glass-card-modern:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 122, 255, 0.15);
    transition: box-shadow 0.3s ease;
}

.dark .glass-card:hover {
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.5);
}

.dark .glass-card-modern:hover {
    box-shadow: 0 12px 40px 0 rgba(88, 86, 214, 0.3);
}

/* Modern animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern input focus */
input:focus, textarea:focus, select:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Disable zoom animation for AI chat input and send button */
#chatInput:focus {
    transform: none;
    transition: none;
}

#sendChat:active {
    transform: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        -webkit-tap-highlight-color: transparent;
    }
    
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .glass-card, .glass-card-modern {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* PWA styles */
@media (display-mode: standalone) {
    header {
        padding-top: env(safe-area-inset-top);
    }
    
    nav.fixed.bottom-0 {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Modern card styles */
.modern-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Smooth page transitions */
.page-transition {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
