:root {
    --primary: #00D4FF;
    --secondary: #FFD700;
    --navy: #1A2A44;
    --gray: #F5F5F5;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333333;
    background-color: var(--gray);
    min-height: 100vh;
}

.navbar {
    background: rgba(26, 42, 68, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--navy); /* Fallback */
}

.hero-gradient {
    background: linear-gradient(135deg, var(--navy) 0%, rgba(26, 42, 68, 0.7) 100%);
}

.search-bar:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.neon-button {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.neon-button:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.chat-bubble {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.custom-select {
    position: relative;
    display: inline-block;
    z-index: 20;
}

.select-selected {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--rounded-button);
    padding: 0.5rem 1rem;
    appearance: none;
}

.select-selected:focus {
    outline: none;
    border-color: var(--primary);
}

.select-items {
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 var(--rounded-button) var(--rounded-button);
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.select-items div {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.select-items div:hover {
    background-color: rgba(0, 212, 255, 0.1);
}

.custom-checkbox {
    position: relative;
    padding-left: 1.5rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1rem;
    width: 1rem;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #f9fafb;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 0.375rem;
    top: 0.125rem;
    width: 0.25rem;
    height: 0.5rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filters-sidebar {
    transition: transform 0.3s ease-in-out;
}

.filters-sidebar.hidden {
    transform: translateX(-100%);
}

.mobile-menu {
    transition: transform 0.3s ease-in-out;
    background-color: var(--navy);
}

.mobile-menu.open {
    transform: translateX(0);
}

.search-overlay {
    transition: transform 0.3s ease-in-out;
}

.search-overlay.open {
    transform: translateY(0);
}

#chatbot {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90%;
    max-width: 320px;
    max-height: 400px;
    background: white;
    border-radius: var(--rounded-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
}

#chatbot-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-body {
    padding: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

#chatbot-input {
    display: flex;
    border-top: 1px solid #e5e7eb;
}

#chatbot-input input {
    flex: 1;
    border: none;
    padding: 0.5rem;
    outline: none;
}

#chatbot-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.chat-message {
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-radius: var(--rounded-md);
}

.chat-message.bot {
    background: #f0f9ff;
    margin-right: 0.5rem;
}

.chat-message.user {
    background: var(--primary);
    color: white;
    margin-left: 0.5rem;
    text-align: right;
}

.comparison-panel {
    transition: transform 0.3s ease-in-out;
}

.comparison-panel.hidden {
    transform: translateY(100%);
}

.back-to-top {
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    transition: opacity 0.3s ease, visibility 0s linear 0s;
    opacity: 1;
    visibility: visible;
}

.form-message {
    transition: opacity 0.3s ease;
}

.prose {
    line-height: 1.75;
    word-break: break-word;
}

.prose p {
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .hero-gradient h1 {
        font-size: 1.875rem;
    }

    .hero-gradient p {
        font-size: 0.875rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .neon-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}