/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    background: rgba(30, 40, 50, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

h1 {
    color: #f0f3f8;
    font-size: 1.8rem;
}

.header-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.header-controls input {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    background: #2c3e44;
    color: white;
}

.header-controls input::placeholder {
    color: #9ab3c6;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #2c5a7a;
    color: white;
}

.btn-primary:hover {
    background: #3e7a9e;
}

.btn-success {
    background: #2d6a4f;
    color: white;
}

.btn-danger {
    background: #9e2d2d;
    color: white;
}

.btn-warning {
    background: #d4a11e;
    color: white;
}

/* Grid de canales */
.canales-grid {
    background: rgba(30, 40, 50, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.grid-header {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 60px;
    gap: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
    color: #bdd4e8;
    font-weight: bold;
}

.canales-container {
    max-height: 600px;
    overflow-y: auto;
}

.canal-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 60px;
    gap: 15px;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    align-items: center;
}

.canal-num {
    color: #9ab3c6;
    font-weight: bold;
    text-align: center;
}

.canal-row input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #2c495e;
    background: #111c24;
    color: white;
    font-family: monospace;
}

.canal-row input:focus {
    outline: none;
    border-color: #3f9eff;
}

.btn-remove {
    background: #6d3b3b;
    color: white;
    padding: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

/* Controles de reproducci贸n */
.reproduction-controls {
    background: rgba(30, 40, 50, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.reproduction-controls button {
    flex: 1;
    min-width: 120px;
}

/* Estado */
.status {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    color: #c0d9f0;
    border-left: 4px solid #3f9eff;
}

.status.playing {
    border-left-color: #6fcf97;
    background: rgba(31, 62, 46, 0.6);
}

.status.error {
    border-left-color: #ff7b72;
    background: rgba(98, 37, 37, 0.6);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e2832;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: white;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #2c3e44;
    color: white;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Tabla de listas */
.listas-table {
    width: 100%;
    border-collapse: collapse;
    color: #e2edf7;
}

.listas-table th,
.listas-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2c495e;
}

.listas-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.listas-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    margin: 0 5px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a2a3a;
}

::-webkit-scrollbar-thumb {
    background: #2c5a7a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3e7a9e;
}
/* style.css - Añadir/actualizar estas reglas */

.canal-row input[value="0"] {
    color: #6b8aa3;
    opacity: 0.7;
}

.canal-row input:focus {
    outline: none;
    border-color: #3f9eff;
    opacity: 1;
    color: white;
}

/* Indicador visual para canales inactivos */
.canal-row input[value="0"]:not(:focus) {
    background: #0a1218;
}

/* Mejorar feedback de reproducción */
.status.playing {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { border-left-color: #6fcf97; opacity: 0.7; }
    50% { border-left-color: #9effc3; opacity: 1; }
    100% { border-left-color: #6fcf97; opacity: 0.7; }
}

.status.error {
    border-left-color: #ff7b72;
    background: rgba(98, 37, 37, 0.6);
}

/* Botones más responsivos */
.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #2c5a7a;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #3e7a9e;
}

.btn-danger {
    background: #9e2d2d;
}

.btn-danger:hover {
    background: #c43b3b;
}

.btn-success {
    background: #2d6a4f;
}

.btn-success:hover {
    background: #40916c;
}