:root {
    /* Default theme vars (Starfield) */
    --bg: #304c7a;
    --text: #f4f5f7;
    --field-bg: #d7a64b;
    --field-text: #c72138;
    --button-bg: #e06236;
    --button-text: #f4f5f7;
    --list-bg: #d7a64b;
    --list-text: #c72138;
    --scrollbar: #c72138;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Segoe UI, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#app-container {
    background: var(--bg);
    border-radius: 14px;
    margin-top: 18px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.30);
    padding: 24px 28px 18px 28px;
    width: 420px;
}

h1 {
    margin: 0 0 16px 0;
    font-size: 1.2em;
    letter-spacing: 0.04em;
}

.row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.col {
    flex: 1;
}

label {
    margin-right: 10px;
}

select, input[type=text], input[type=number] {
    background: var(--field-bg);
    color: var(--field-text);
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    margin-right: 10px;
    font-size: 1em;
}

select:focus, input:focus {
    outline: 2px solid var(--button-bg);
}

button, .toggle {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 7px;
    padding: 8px 18px;
    font-size: 1em;
    cursor: pointer;
    margin-right: 10px;
}

button:active {
    filter: brightness(0.92);
}

#category, #game {
    min-width: 120px;
}

#item-list {
    width: 100%;
    background: var(--list-bg);
    color: var(--list-text);
    border: none;
    border-radius: 7px;
    min-height: 190px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-family: inherit;
}

#item-list option {
    padding: 4px 2px;
    background: var(--list-bg);
    color: var(--list-text);
}

#entry-count {
    font-size: 0.95em;
    opacity: 0.8;
    margin-left: 6px;
}

#console {
    background: var(--list-bg);
    color: var(--text); /* Consider if this should be --list-text or a specific console text color */
    font-family: monospace;
    border-radius: 7px;
    padding: 7px 12px;
    min-height: 52px;
    max-height: 76px;
    overflow-y: auto;
    font-size: 0.97em;
    margin-bottom: 10px;
}

#about-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
}

#about-box {
    background: var(--bg);
    color: var(--text);
    border-radius: 13px;
    box-shadow: 0 0 16px #111a;
    padding: 24px 38px;
    text-align: center;
    min-width: 260px;
}

.theme-dropdown {
    margin-left: 12px;
}

#theme-list {
    max-width: 180px;
}

/* Toggle Switch */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    user-select: none;
    margin-right: 8px;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 46px;
    height: 24px;
    border-radius: 14px;
    background: #aaa4;
    display: inline-block;
    position: relative;
    margin-right: 7px;
    vertical-align: middle;
    transition: background 0.19s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--button-bg);
}

.toggle-slider:before {
    content: '';
    display: block;
    position: absolute;
    width: 19px;
    height: 19px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: left 0.21s;
    box-shadow: 0 1px 4px #1113;
}

.toggle-switch input:checked + .toggle-slider:before {
    left: 22px;
}