/* --- RGB LED STÍLUSOK --- */
body {
    background-color: #050505;
    color: #e5e5e5;
}

/* * A varázslat itt történik: folyamatosan pörgetjük a színárnyalatot 0-tól 360 fokig.
 * Ezt rátesszük minden színes fénnyel rendelkező elemre.
 */
@keyframes rgb-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.main-panel {
    background: linear-gradient(145deg, #111111, #0a0a0a);
    border: 1px solid #1f1f1f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- RGB Fényszöveg --- */
.led-text {
    color: #00f3ff; /* Alapszín */
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
    animation: rgb-shift 5s linear infinite;
}

/* --- RGB Beviteli Mezők (PIN) --- */
.pin-input {
    width: 3.5rem;
    height: 4.5rem;
    text-align: center;
    font-size: 2rem;
    background: #0a0a0a;
    border: 2px solid #262626;
    border-radius: 0.5rem;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    
    color: #00f3ff;
    font-family: monospace;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    
    /* RGB animáció */
    animation: rgb-shift 5s linear infinite;
}

.pin-input:focus {
    border-color: #00f3ff;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.5);
    background: #0f172a;
}

/* --- Gombok --- */
.led-button-disabled {
    background: #171717;
    color: #525252;
    border: 1px solid #262626;
}

.led-button-active {
    background: #00f3ff;
    color: #000000;
    border: 1px solid #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    /* RGB animáció a gombra is */
    animation: rgb-shift 5s linear infinite;
}

.led-button-active:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* --- DROP PANEL RGB STÍLUSOK --- */
.drop-zone {
    border: 2px dashed #262626;
    background: #0a0a0a;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #00f3ff;
    background: #0f172a;
    animation: rgb-shift 5s linear infinite;
}

.drop-zone.dragover {
    border-color: #00f3ff;
    background: #0f172a;
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.3);
    animation: rgb-shift 5s linear infinite;
}

/* Fájl elemek a listában */
.file-item {
    background: #111111;
    border: 1px solid #1f1f1f;
    border-left: 3px solid #00f3ff;
    transition: all 0.2s ease;
    /* Csak a bal oldali sáv kap RGB pörgést */
    animation: rgb-shift 5s linear infinite;
}

.file-item:hover {
    background: #171717;
    box-shadow: inset 2px 0 10px rgba(0, 243, 255, 0.2);
}

/* Egyedi gördítősáv a fájllistához */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #0a0a0a; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #262626; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { 
    background: #00f3ff; 
    animation: rgb-shift 5s linear infinite;
}

/* --- MODAL EXTRA STÍLUSOK --- */
.fancy-toggle {
    transition: all 0.3s ease;
}
/* Ha be van kapcsolva (Vágandó = IGEN), bekapcsol az RGB mód */
input:checked ~ .fancy-toggle {
    background-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    animation: rgb-shift 5s linear infinite;
}

/* --- Dátum és Idő mezők --- */
.datetime-input {
    height: 3rem;
    padding: 0 1rem;
    font-size: 1.1rem;
    background: #0a0a0a;
    border: 2px solid #262626;
    border-radius: 0.5rem;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    color: #00f3ff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    /* RGB animáció */
    animation: rgb-shift 5s linear infinite;
}

.datetime-input:focus {
    border-color: #00f3ff;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.5);
    background: #0f172a;
}

/* Kifehérítjük a böngésző beépített naptár és óra ikonját (Chrome/Edge/Safari specifikus) */
.datetime-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.datetime-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}