:root {
    --primary-color: #005f73;
    --primary-gradient: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
    --bg-gradient: linear-gradient(135deg, #e0f7fa 0%, #e2eafc 100%);
    --result-bg: linear-gradient(135deg, #e0f7fa 0%, #e0f2fe 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --text-main: #2b2d42;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --input-bg: #f0f4f8;
    --input-hover: #ffffff;
    --shadow-md: 0 10px 25px -5px rgba(0, 95, 115, 0.15), 0 8px 10px -6px rgba(0, 95, 115, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 95, 115, 0.1), 0 10px 10px -5px rgba(0, 95, 115, 0.04);
    --radius-xl: 25px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    /* Richer, deep teal/navy background */
    --primary-color: #4cc9f0;
    --primary-gradient: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    --bg-gradient: linear-gradient(135deg, #02111b 0%, #0d2137 100%);

    /* Higher contrast card */
    --card-bg: rgba(13, 33, 55, 0.85);
    --nav-bg: rgba(13, 33, 55, 0.95);
    /* Deep Navy */

    --result-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    --text-main: #e0fbfc;
    --text-secondary: #9db4c0;
    --border-color: #274c77;

    /* Lighter inputs so they stand out slightly */
    --input-bg: #162f4d;
    --input-hover: #1f3b5d;

    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
    --shadow-hover: 0 20px 30px -5px rgba(0, 0, 0, 0.9);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(125, 125, 125, 0.1);
    transform: rotate(15deg);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    background: linear-gradient(to right, #005f73, #0a9396, #94d2bd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
    background: linear-gradient(135deg, #2b2d42 0%, #005f73 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.lookup-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lookup-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-left: 0.5rem;
}

.result-panel {
    background: var(--result-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #457b9d;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.result-price {
    font-size: 3rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.result-details {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    opacity: 0.8;
}

.no-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #fff5f5;
    color: #e03131;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid #ffc9c9;
    font-weight: 500;
}

.hidden {
    display: none;
}

.card-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-reset {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-reset:hover {
    color: #e03131;
    background-color: #fff0f0;
}

.info-section {
    width: 100%;
    max-width: 600px;
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer {
    text-align: center;
    padding: 2rem;
    color: rgba(108, 117, 125, 0.8);
    font-size: 0.85rem;
    margin-top: auto;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .lookup-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background-color: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
    user-select: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.custom-select-trigger:hover {
    background-color: var(--input-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.custom-select-trigger.active {
    background-color: var(--input-hover);
    border-color: #0a9396;
    box-shadow: 0 0 0 4px rgba(10, 147, 150, 0.15);
}

.custom-select-trigger.disabled {
    background-color: var(--input-bg);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.8;
}

.arrow {
    width: 0.8em;
    height: 0.8em;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 1rem;
    margin-bottom: 0.2rem;
}

.custom-select-trigger.active .arrow {
    transform: rotate(225deg);
    margin-bottom: -0.2rem;
}

.custom-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.custom-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-options::-webkit-scrollbar {
    width: 8px;
}

.custom-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
    background-color: #dbe4eb;
    border-radius: 20px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background-color: #cbd5e1;
}

.custom-option {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 12px;
    margin-bottom: 2px;
}

.custom-option:hover {
    background-color: var(--input-bg);
    color: var(--primary-color);
    font-weight: 500;
}

.custom-option.selected {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}