/* ====================================
   ENHANCED TOUCH PANEL UX
   ==================================== */

/* Scene Labels - Now visible on touch panel */
.switch-module .scene-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: -6px;
    transition: all 0.3s ease;
    text-align: center;
}

/* Improved touch modules - better contrast */
.switch-module {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
}

/* Enhanced hover state */
.switch-module:hover {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05)) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.switch-module:hover .scene-label {
    color: var(--gold-primary);
}

.switch-module:hover i {
    color: #9ca3af !important;
    /* Brighter gray on hover */
    transform: scale(1.1);
}

/* Active (ON) state improvements */
.switch-module.active {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1)) !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.switch-module.active .scene-label {
    color: var(--gold-primary);
    font-weight: 700;
}

.switch-module.active i {
    color: #fff !important;
    text-shadow: 0 0 20px var(--gold-primary);
}

/* Enhanced icon contrast - bigger and brighter */
.switch-module i {
    font-size: 2rem !important;
    /* Bigger icons */
    color: #6b7280 !important;
    /* Brighter default gray */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
}

/* Better LED indicators */
.switch-module .led-indicator {
    width: 10px !important;
    height: 10px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
    margin-top: -8px;
}

/* Enhanced interaction hint */
.interaction-hint.enhanced {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 2px solid var(--gold-primary);
    padding: 12px 25px;
    font-size: 0.9rem;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.interaction-hint.enhanced strong {
    color: var(--gold-primary);
    font-weight: 700;
}

/* Gold pulsing glow effect */
@keyframes goldPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
    }
}

.interaction-hint.enhanced {
    animation: goldPulse 2s infinite, hint-bump 2s infinite ease-in-out;
}

/* Ripple effect on click */
.switch-module::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
}

.switch-module.press-active::before {
    width: 100px;
    height: 100px;
    opacity: 0;
}

/* Master button special styling */
.switch-module.master-btn {
    background: linear-gradient(145deg, rgba(255, 68, 68, 0.08), rgba(255, 68, 68, 0.02)) !important;
    border-color: rgba(255, 68, 68, 0.2) !important;
}

.switch-module.master-btn:hover {
    background: linear-gradient(145deg, rgba(255, 68, 68, 0.15), rgba(255, 68, 68, 0.05)) !important;
    border-color: rgba(255, 68, 68, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.switch-module.master-btn.active {
    background: linear-gradient(145deg, rgba(255, 68, 68, 0.25), rgba(255, 68, 68, 0.1)) !important;
    border-color: #ff4444 !important;
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.5);
}

/* Switch label enhancement */
.switch-label {
    font-size: 0.8rem !important;
    letter-spacing: 3px !important;
    opacity: 0.8 !important;
    color: var(--text-light-gray) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .switch-module i {
        font-size: 1.6rem !important;
    }

    .switch-module .scene-label {
        font-size: 0.65rem;
    }

    .interaction-hint.enhanced {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}