:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --input-bg: #f2f2f2;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #ffffff;
    --input-bg: #1e1e1e;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background 0.3s, color 0.3s;
    overflow: hidden;
}

/* Navigation Buttons */
.nav-link {
    position: absolute;
    top: 25px;
    left: 25px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.6;
    font-weight: 500;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 25px;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
}

/* Main UI */
.container {
    width: 70%;
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.search-bar {
    width: 100%;
    padding: 22px 35px;
    border-radius: 50px;
    border: none;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1.25rem;
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.results-container {
    margin-top: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

.results-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.result-text {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Overlay Page */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 100;
}

.overlay.active { transform: translateY(0); }

.overlay-content {
    width: 70%;
    max-width: 600px;
    padding: 100px 0;
}

#missingList li {
    padding: 15px 0;
    border-bottom: 1px solid var(--input-bg);
    font-size: 1.2rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
