/* Premium UI Upgrades */

:root {
    --premium-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

body {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Cards */
.card {
    transition: var(--premium-transition);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Micro animations on buttons */
.btn {
    transition: var(--premium-transition);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

/* Smooth Input Focus */
.form-control {
    transition: var(--premium-transition);
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
    border-color: #86b7fe;
    transform: translateY(-1px);
}

/* AI Chat Widget Refinements */
#ai-chat-box {
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

#ai-chat-toggle {
    transition: var(--premium-transition);
}
#ai-chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Dark Mode Support (detects OS setting) */
@media (prefers-color-scheme: dark) {
    body.agntix-light { /* Override base if class exists */
        background-color: #121212 !important;
        color: #e0e0e0 !important;
    }
    .card, .bg-white, .bg-light {
        background-color: #1e1e1e !important;
        border-color: #333 !important;
        color: #e0e0e0;
    }
    .text-dark { color: #f8f9fa !important; }
    .text-muted { color: #adb5bd !important; }
    .form-control {
        background-color: #2a2a2a !important;
        border-color: #444 !important;
        color: #fff !important;
    }
    #ai-chat-box {
        background: rgba(30,30,30,0.9);
        border: 1px solid rgba(255,255,255,0.1);
    }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
