/* Theme Toggle Button Styles */
.terminal-menu {
    display: flex;
    align-items: center;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--secondary-color);
    background-color: transparent;
    color: var(--font-color);
    font-family: var(--font-stack);
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 20px;
    border-radius: 3px;
}

.theme-toggle:hover {
    background-color: var(--code-bg-color);
    border-color: var(--primary-color);
}

.theme-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Override system preference when data-theme is set */
[data-theme="light"] {
    --background-color: #fff;
    --font-color: #151515;
    --invert-font-color: #fff;
    --primary-color: #e84a85;
    --secondary-color: #727578;
    --tertiary-color: #727578;
    --error-color: #d20962;
    --progress-bar-background: #727578;
    --progress-bar-fill: #151515;
    --code-bg-color: #e8eff2;
}

[data-theme="dark"] {
    --background-color: #222225;
    --font-color: #e8e9ed;
    --invert-font-color: #222225;
    --secondary-color: #a3abba;
    --tertiary-color: #a3abba;
    --primary-color: #ff6b9d;
    --error-color: #ff3c74;
    --progress-bar-background: #3f3f44;
    --progress-bar-fill: #ff6b9d;
    --code-bg-color: #3f3f44;
}

/* Mobile adjustments */
@media only screen and (max-width: 850px) {
    .theme-toggle {
        margin-left: 0;
        margin-top: 10px;
        font-size: 12px;
        padding: 6px 10px;
    }
}
