:root {
        --bg: #f2f2f2;
        --text: #000;
        --box: #fff;
        --shadow: rgba(0,0,0,0.1);
    }

    [data-theme="dark"] {
        --bg: #121212;
        --text: #fff;
        --box: #1e1e1e;
        --shadow: rgba(255,255,255,0.1);
    }

    body {
        margin: 0;
        padding: 0;
        font-family: sans-serif;
        background: var(--bg);
        color: var(--text);
        height: 40vh;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background 0.3s ease, color 0.3s ease;
        position: relative;
        max-width: 100%;
    }

    .main-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .logo {
        width: 30%;
    }

    .search-container {
        width: 70%;
    }

    .search-box {
        display: flex;
        align-items: center;
        background-color: var(--box);
        border: 2px solid #002fff;
        border-radius: 50px;
        padding: 6px 10px;
        box-shadow: 0 2px 6px var(--shadow);
    }

    .search-icon {
        margin: 0 10px;
        fill: gray;
        flex-shrink: 0;
    }

    .search-box input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 16px;
        padding: 10px;
        color: var(--text);
    }

    .search-btn {
        background-color: #0051ff;
        color: white;
        font-size: 15px;
        padding: 10px 20px;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .search-btn:hover {
        background-color: #0051ff;
    }

    .toggle-wrapper {
        position: absolute;
        top: 30px;
        left: 40px;
    }

    .toggle-switch {
        width: 50px;
        height: 26px;
        background: #87cefa;
        border-radius: 50px;
        position: relative;
        cursor: pointer;
        transition: background 0.3s ease;
        display: flex;
        align-items: center;
        padding: 3px;
    }

    .toggle-thumb {
        width: 20px;
        height: 20px;
        background: #fff;
        border-radius: 50%;
        transition: transform 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .toggle-switch.dark .toggle-thumb {
        transform: translateX(24px);
    }

    @media (max-width: 600px) {
    .search-container {
        width: 100%;
        }
    .logo {
        width: 70%;
        }
    }