/* ==========================================================================
   OmniSelect Configuration Workspace Stylesheet
   ========================================================================== */

:root {
    --background-color: #f8f8f8;
    --text-color: #000;
    --container-background: white;
    --container-border: #ddd;
    --section-background: #f8f9fa;
    --section-border: #3498db;
    --section-text-color: #2c3e50;
    --input-background: white;
    --input-border: #bdc3c7;
    --input-border-hover: #3498db;
    --card-background: white;
    --card-shadow: rgba(0,0,0,0.1);
    --muted-color: #7f8c8d;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #e0e0e0;
        --container-background: #2a2a2a;
        --container-border: #444;
        --section-background: #333;
        --section-border: #62707d;
        --section-text-color: #e0e0e0;
        --input-background: #2a2a2a;
        --input-border: #555;
        --input-border-hover: #62707d;
        --card-background: #2a2a2a;
        --card-shadow: rgba(0,0,0,0.3);
        --muted-color: #9ca3af;
    }
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    padding: 20px; 
    padding-top: 120px;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
}

.omniselect-container {
    width: 100%;
    margin: 0 auto;
    background-color: var(--container-background);
    color: var(--text-color);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--container-border);
    box-shadow: 0 4px 8px var(--card-shadow);
    box-sizing: border-box;
}

.omniselect-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--section-text-color);
    margin-top: 0;
    margin-bottom: 25px;
}

.game-card {
    background-color: var(--card-background);
    border: 1px solid var(--container-border);
    border-left: 5px solid var(--section-border);
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.game-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--section-text-color);
    margin-top: 0;
    margin-bottom: 18px;
}

.card-step-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    text-align: right;
    background-color: var(--section-border);
    color: #fff;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-card.locked {
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    filter: grayscale(30%);
}

.input-method-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--input-background);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--input-border-hover);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.btn-primary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    background-color: var(--section-border);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(0.95);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Character Counters Inside Fields */
.char-counter {
    position: absolute;
    bottom: -20px;
    right: 5px;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.char-counter.counter-warn {
    color: #e67e22;
    font-weight: bold;
}