:root {
    --brand-primary: #2563eb;
    --brand-secondary: #4f46e5;
    --sidebar-width: 280px;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(226, 232, 240, 0.6);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fbfcfe;
    color: #1e293b;
    scroll-behavior: smooth;
}

.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border-right: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(241, 245, 249, 0.6);
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    font-weight: 800;
    border-color: rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.05);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: var(--brand-primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 10px rgba(37, 99, 235, 0.4);
}

/* Premium Card Tokens */
.card-premium {
    background: white;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #e2e8f0;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Map Interactivity & Tooltips */
.map-tooltip {
    background: rgba(15, 23, 42, 0.9) !important;
    /* slate-900 */
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    /* blue-500/50 */
    border-radius: 12px !important;
    padding: 8px 12px !important;
    color: white !important;
    font-size: 11px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(4px) !important;
}

.map-tooltip::before {
    border-top-color: rgba(15, 23, 42, 0.9) !important;
}

/* AI Consultation Hub Styles */
.ai-hub-fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-hub-fab:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.5);
    border-color: rgba(59, 130, 246, 0.5);
}

.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.ai-chat-window.hidden {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.ai-chat-header {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.ai-message.user {
    align-self: flex-end;
    background: var(--brand-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chat-input-area {
    padding: 20px 24px 24px;
    background: rgba(15, 23, 42, 0.5);
}

.ai-chat-input-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    padding: 4px;
    transition: all 0.3s ease;
}

.ai-chat-input-container:focus-within {
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.08);
}

.ai-chat-input-container input {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 16px;
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.ai-chat-input-container input:focus {
    outline: none;
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ai-chat-send:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }
}