/* PowerDMX Modern Dashboard Theme */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #1a1a1b; color: #e1e1e1; padding: 20px; margin: 0; }
h1, h3 { color: #007bff; margin-top: 0; }

.panel { background: #2a2a2e; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); border: 1px solid #3e3e42; }

/* Tabs */
.tabs { display: flex; gap: 2px; margin-bottom: 0; }
.tab-btn { background: #3e3e42; color: #999; padding: 12px 20px; border: none; cursor: pointer; flex: 1; border-radius: 8px 8px 0 0; font-weight: bold; transition: 0.3s; }
.tab-btn:hover { background: #4e4e52; }
.tab-btn.active { background: #007bff; color: white; }

.tab-content { display: none; padding: 20px; background: #2a2a2e; border-radius: 0 0 8px 8px; border: 1px solid #3e3e42; border-top: none; }
.tab-content.active { display: block; }

/* Stats Grid */
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
.stat-card { background: #3e3e42; padding: 15px; border-radius: 6px; text-align: center; border-left: 4px solid #007bff; }
.stat-value { display: block; font-size: 1.4em; font-weight: bold; color: #fff; margin-top: 5px; }
.stat-label { font-size: 0.8em; color: #aaa; text-transform: uppercase; }

/* Node Config Cards */
.node-card { background: #333336; border: 1px solid #444; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.node-header { display: flex; justify-content: space-between; border-bottom: 1px solid #444; padding-bottom: 10px; margin-bottom: 10px; color: #007bff; }
.strip-info { background: #252526; padding: 8px; margin: 5px 0; border-radius: 4px; font-size: 0.9em; border-left: 3px solid #28a745; }

/* Forms & Buttons */
input { background: #1a1a1b; border: 1px solid #444; color: white; padding: 10px; border-radius: 4px; width: 100%; margin: 5px 0; box-sizing: border-box; }
button { background-color: #007bff; color: white; border: none; padding: 12px; border-radius: 4px; cursor: pointer; font-weight: bold; width: 100%; }
button:hover { background-color: #0056b3; }
button.secondary { background-color: #6c757d; width: auto; padding: 5px 15px; }

/* Logs */
#eventLog { background: #1a1a1b; color: #ccc; padding: 10px; height: 120px; overflow-y: scroll; font-family: monospace; font-size: 0.85em; border-radius: 4px; }
#serialTerminal { background: #000; color: #0f0; padding: 10px; font-family: 'Courier New', monospace; height: 400px; overflow-y: scroll; white-space: pre-wrap; border-radius: 4px; }

/* ==========================================
   MACRO SEQUENCER TILES 
========================================== */
.effect-tile {
    display: flex;
    align-items: stretch;
    background-color: #2a2a2e;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #3e3e42;
    transition: 0.2s;
    overflow: hidden;
}
.effect-tile:hover { border-color: #007bff; }

.play-immediate {
    flex-grow: 1;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.play-immediate:hover { background-color: #0056b3; }

.sequence-box {
    padding: 5px 10px;
    border-left: 1px solid #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1b;
}
.sequence-box label { font-size: 0.65em; color: #ccc; margin-bottom: 3px; font-weight: bold; text-transform: uppercase;}
.sequence-box input {
    width: 35px;
    padding: 4px;
    text-align: center;
    background: #000;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    margin: 0;
}
.sequence-box input:focus { border-color: #007bff; outline: none; }

/* Force OTA Button Grey When Disabled */
button.disabled-ota {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    pointer-events: none !important; /* Physically blocks the click */
}

.scene-card {
    border: 1px solid #007bff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}
.track-row {
    border: 1px dashed #6c757d;
    padding: 5px;
    margin-top: 5px;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.track-row input[type="color"] {
    width: 30px; padding: 0; border: none;
}