:root {
    --bg: #0f172a;
    --surface: rgba(30, 41, 59, 0.65);
    --accent: #fbbf24;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --danger: #f87171;
    --card-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(1200px 800px at 10% -10%, #1e293b, var(--bg));
    color: var(--text);
    margin: 0;
    padding: 2rem 1rem;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

.card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.search-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.autocomplete-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    padding: 0.65rem 1rem;
    cursor: pointer;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.suggestions-list li:hover, 
.suggestions-list li.active {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent);
}

.search-box label {
    font-weight: 600;
    color: var(--accent);
}

.search-box input {
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    min-width: 280px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.search-box button {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: #0f172a;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.1s, filter 0.2s;
}

.search-box button:hover {
    filter: brightness(1.1);
}

.search-box button:active {
    transform: scale(0.97);
}

#loading, #error {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
}

#loading {
    color: var(--accent);
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
}

#error {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    margin-top: 2rem;
}

.result-section h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.result-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.result-section th,
.result-section td {
    padding: 0.65rem 1rem;
    text-align: left;
}

.result-section th {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.12);
}

.result-section td {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.result-section tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.chart-container {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-top: 1rem;
    height: 300px;
}
