/* ============================================================
   ADMIN MODAL - FORCE LEVEL & COLOR BUTTONS STYLING
============================================================ */

/* Field Override Container */
.field-override {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(120, 180, 230, 0.2);
    transition: all 0.3s ease;
}

.field-override:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(120, 180, 230, 0.35);
}

/* Checkbox Row */
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--lw-accent);
}

.check-row label {
    cursor: pointer;
    font-weight: 500;
    color: var(--lw-text);
    user-select: none;
}

/* Override Options Container */
.override-options {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(120, 180, 230, 0.15);
    animation: slideDown 0.3s ease forwards;
}

.override-options.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Level Options - Radio Buttons Styled as Pills */
#level-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#level-options label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(69, 224, 255, 0.1);
    border: 2px solid rgba(69, 224, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 0.85rem;
    font-weight: 500;
}

#level-options label:hover {
    background: rgba(69, 224, 255, 0.15);
    border-color: rgba(69, 224, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(69, 224, 255, 0.2);
}

#level-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#level-options input[type="radio"]:checked+span {
    color: #041018;
}

#level-options label:has(input:checked) {
    background: var(--lw-accent);
    border-color: var(--lw-accent);
    color: #041018;
    box-shadow: 0 0 20px rgba(69, 224, 255, 0.4);
    transform: scale(1.05);
}

/* Color Options - Emoji Buttons */
#color-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.color-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-btn:hover::before {
    opacity: 1;
}

.color-btn:active {
    transform: scale(0.95);
}

/* Selected Color Button */
.color-btn.selected {
    border-color: var(--lw-accent);
    box-shadow: 0 0 20px rgba(69, 224, 255, 0.5);
    transform: scale(1.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(69, 224, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(69, 224, 255, 0.8);
    }
}

/* Specific color button styling */
.color-btn[data-color="green"]:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.5);
}

.color-btn[data-color="yellow"]:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.5);
}

.color-btn[data-color="red"]:hover {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.5);
}

/* Accessibility - Focus States */
.color-btn:focus-visible {
    outline: 2px solid var(--lw-accent);
    outline-offset: 4px;
}

#level-options label:focus-within {
    outline: 2px solid var(--lw-accent);
    outline-offset: 2px;
}