/* Lamp Settings Styles */

.lamp-settings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lamp-group {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
}

.lamp-group-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lamp-item {
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.lamp-item:last-child { border-bottom: none; }

.lamp-label { 
    color: rgba(255, 255, 255, 0.7); 
    font-size: 12px;
}

/* Custom Select (OSRS style) */
.lamp-select {
    width: 100%;
    padding: 8px 32px 8px 10px;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(61,50,32,0.9), rgba(44,36,22,0.9));
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: 1px solid rgba(0,0,0,0.35);
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.lamp-select:focus {
    border-color: var(--border-gold);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}

/* Simple dropdown arrow */
.lamp-select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
                      linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

@media (max-width: 1024px) {
    .lamp-settings-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lamp-item {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   OSRS Custom Select Dropdown
------------------------------ */
.osrs-select { position: relative; width: 100%; }

.osrs-select-button {
    width: 100%;
    text-align: left;
    padding: 10px 36px 10px 12px;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(61,50,32,0.95), rgba(44,36,22,0.95));
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: 1px solid rgba(0,0,0,0.35);
    cursor: pointer;
}

.osrs-select-button:hover { border-color: var(--border-hover); }
.osrs-select-button:focus { border-color: var(--border-gold); box-shadow: 0 0 0 3px rgba(255,215,0,0.15); }

.osrs-select-button::after {
    content: '';
    position: absolute;
    right: 14px; top: 50%; transform: translateY(-50%);
    border-width: 6px 5px 0 5px;
    border-style: solid;
    border-color: var(--text-secondary) transparent transparent transparent;
}

.osrs-select.open .osrs-select-button::after {
    border-width: 0 5px 6px 5px;
    border-color: transparent transparent var(--text-secondary) transparent;
}

.osrs-select-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(61,50,32,0.98), rgba(44,36,22,0.98));
    border: 2px solid var(--border-gold);
    border-radius: 10px;
    box-shadow: 0 18px 30px rgba(0,0,0,0.5);
    z-index: 3000;
    padding: 6px 0;
}

.osrs-select.open .osrs-select-list { display: block; }

.osrs-select-item {
    list-style: none;
    padding: 8px 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.osrs-select-item:hover {
    background: rgba(255,215,0,0.08);
    color: var(--text-primary);
}

.osrs-select-item.selected {
    background: rgba(255,215,0,0.15);
    color: var(--text-primary);
}
