:root {
    --bg-gradient-light: linear-gradient(135deg, #e0e7ff 0%, #fff7e6 100%);
    --bg-gradient-dark: linear-gradient(135deg, #191b29 0%, #24203a 100%);
    --container-bg-light: #ffffffcc;
    --container-bg-dark: #222237ee;
    --shadow-light: 0 4px 16px 0 #0001;
    --shadow-dark: 0 4px 16px 0 #0008;
    --text-main-light: #2b193c;
    --text-main-dark: #ffffffee;
    --resolution-bg-light: #faf9f6;
    --resolution-bg-dark: #332e44;
    --resolution-hover-light: #f0f4ff;
    --resolution-hover-dark: #29273d;
    --resolution-text-light: #262626;
    --resolution-text-dark: #e7e4ef;
    --btn-bg-light: #f5f7ff;
    --btn-bg-dark: #373063;
    --btn-active-light: #e8efff;
    --btn-active-dark: #4b4073;
    --btn-text-light: #222;
    --btn-text-dark: #d5d4e8;
    --icon-color-light: inherit;
    --icon-color-dark: #f5edff;
}

body {
    font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
    background: var(--bg-gradient-light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.35s;
}
body.dark-mode {
    background: var(--bg-gradient-dark);
}
.container {
    background: var(--container-bg-light);
    box-shadow: var(--shadow-light);
    border-radius: 16px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    max-width: 500px;
    width: 90vw;
    transition: background 0.35s, box-shadow 0.35s;
}
body.dark-mode .container {
    background: var(--container-bg-dark);
    box-shadow: var(--shadow-dark);
}
h1 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-main-light);
    margin-bottom: 1.5rem;
    font-weight: bold;
    transition: color 0.35s;
}
body.dark-mode h1 {
    color: var(--text-main-dark);
}
ul.resolutions {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.resolutions li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    font-size: 1.09rem;
    color: var(--resolution-text-light);
    background: var(--resolution-bg-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 6px #0001;
    transition: background 0.2s, color 0.25s;
}
body.dark-mode ul.resolutions li {
    color: var(--resolution-text-dark);
    background: var(--resolution-bg-dark);
    box-shadow: 0 2px 9px #0004;
}
ul.resolutions li:hover {
    background: var(--resolution-hover-light);
}
body.dark-mode ul.resolutions li:hover {
    background: var(--resolution-hover-dark);
}
.icon {
    font-size: 1.4rem;
    min-width: 1.5em;
    color: var(--icon-color-light);
    transition: color 0.3s;
}
body.dark-mode .icon {
    color: var(--icon-color-dark);
}
.lang-switcher {
    margin-bottom: 1.2rem;
    text-align: center;
}
.lang-switcher button {
    background: var(--btn-bg-light);
    color: var(--btn-text-light);
    border: none;
    border-radius: 5px;
    padding: 0.3em 0.9em;
    margin: 0.15em 0.1em;
    font-size: 1.06rem;
    cursor: pointer;
    transition: background 0.2s, color 0.3s;
}
.lang-switcher button.active, .lang-switcher button:focus {
    background: var(--btn-active-light);
    font-weight: bold;
    outline: none;
}
body.dark-mode .lang-switcher button {
    background: var(--btn-bg-dark);
    color: var(--btn-text-dark);
}
body.dark-mode .lang-switcher button.active, 
body.dark-mode .lang-switcher button:focus {
    background: var(--btn-active-dark);
}
/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.9rem;
}
.theme-toggle-btn {
    background: var(--btn-bg-light);
    border: none;
    border-radius: 100px;
    font-size: 1.17rem;
    padding: 0.25em 0.68em 0.25em 0.6em;
    cursor: pointer;
    color: var(--btn-text-light);
    box-shadow: 0 2px 8px #0002;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: background 0.25s, color 0.3s;
}
.theme-toggle-btn:active {
    box-shadow: inset 0 2px 7px #0001;
}
body.dark-mode .theme-toggle-btn {
    background: var(--btn-bg-dark);
    color: var(--btn-text-dark);
}
@media (max-width: 600px) {
    .container {
        padding: 1.2rem 0.5rem;
        max-width: 99vw;
    }
    h1 {
        font-size: 1.25rem;
        margin-bottom: 0.9rem;
    }
    ul.resolutions li {
        font-size: 1rem;
        padding: 0.6rem 0.6rem;
    }
    .lang-switcher button {
        padding: 0.18em 0.5em;
        font-size: 0.97rem;
    }
    .theme-toggle {
        margin-bottom: 0.6rem;
    }
}

