/* Alpine.js: x-cloak 초기화 전 숨김 */
[x-cloak] { display: none !important; }

/* Dark scheme for native popups */
:root { color-scheme: dark; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2c2820; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d3520; }

/* Nav active */
.nav-link.active {
    color: #FACC15;
    background: #1c1a16;
    border-left: 3px solid #FACC15;
}

/* Status badges */
.badge-ok { color: #4ADE80; background: rgba(74, 222, 128, 0.1); }
.badge-static { color: #918778; background: rgba(145, 135, 120, 0.15); }
.badge-failed { color: #F87171; background: rgba(248, 113, 113, 0.1); }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Drop zone active */
#drop-zone.drag-over {
    border-color: #FACC15;
    background: rgba(250, 204, 21, 0.05);
}

/* Table row hover */
#results-table tr:hover { background: rgba(250, 204, 21, 0.02); }

/* Filter button active */
.filter-btn.active {
    background: #2c2820;
    color: #FACC15;
}

/* Mono values */
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 13px; }

/* Failed row editable input */
.manual-input {
    background: #131210;
    border: 1px solid #2c2820;
    border-radius: 4px;
    padding: 2px 8px;
    color: #F87171;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    width: 120px;
}
.manual-input:focus {
    outline: none;
    border-color: #FACC15;
}

/* Tier badges */
.badge-dev { color: #FACC15; background: rgba(250, 204, 21, 0.15); }
.badge-ultimate { color: #F97316; background: rgba(249, 115, 22, 0.15); }
.badge-pro { color: #A78BFA; background: rgba(167, 139, 250, 0.15); }
.badge-plus { color: #60A5FA; background: rgba(96, 165, 250, 0.15); }
.badge-basic { color: #918778; background: rgba(145, 135, 120, 0.15); }

/* Status badges */
.badge-active { color: #4ADE80; background: rgba(74, 222, 128, 0.1); }
.badge-frozen { color: #FACC15; background: rgba(250, 204, 21, 0.1); }
.badge-banned { color: #F87171; background: rgba(248, 113, 113, 0.1); }
.badge-redeemed { color: #22D3EE; background: rgba(34, 211, 238, 0.1); }
.badge-revoked { color: #4d4639; background: rgba(77, 70, 57, 0.15); }

/* Input focus override */
input:focus {
    outline: none !important;
    border-color: #FACC15 !important;
}

/* Custom dropdown trigger */
.x-select {
    background: #1f1d1a;
    border: 1px solid #2c2820;
    color: #e8e0d4;
    cursor: pointer;
    transition: border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.x-select:hover { border-color: #3d3520; }

/* Custom dropdown menu */
.x-select-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #1a1816;
    border: 1px solid #2c2820;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 50;
    padding: 4px 0;
    max-height: 200px;
    overflow-y: auto;
}

/* Custom dropdown option */
.x-select-opt {
    width: 100%;
    text-align: left;
    padding: 6px 12px;
    color: #e8e0d4;
    font-size: inherit;
    transition: background 0.1s;
    cursor: pointer;
    border: none;
    background: none;
}
.x-select-opt:hover { background: #2c2820; }
.x-select-opt.active { color: #FACC15; }
