/* Estilos para los filtros */
#orus-filtros-canales {
    margin-bottom: 20px;
}

#orus-filtros-canales select {
    padding: 5px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 10px;
    max-width: 94%;
}

#orus-reset-filtros {
  margin-left: 10px;
  padding: 0px 10px;
  font-family: Saira;
  font-size: 14px;
  background-color: black;
  color: white;
  border-color: white;
}

/* Estilos para la lista de canales */
#orus-canales-disponibles {
    display: flex;
    flex-wrap: wrap;
}

.orus-canal {
    padding: 10px;
    margin: 5px;
    border: 1px solid #4f0909;
    cursor: grab;
    border-radius: 4px;
    transition: background-color 0.2s;
    background-color: #220202;
    color: white;
    font-family: Saira;
    font-size: 11px;
    font-weight: 600;
}

.orus-canal:hover {
    background-color: black;
}

.orus-canal:active {
    cursor: grabbing;
}

/* Estilos para las zonas de drop */
.orus-droppable {
    position: relative;
    min-height: 360px;
    border: 1px dashed #220202;
    border-radius: 8px;
    transition: border-color 0.3s, border-width 0.3s;
    padding: 0;
    margin: 0;
    z-index: 10;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* Borde fuerte cuando el contenedor tiene contenido */
.orus-droppable.orus-contenido-cargado {
    border: 2px dashed #111;
}

/* Borde fuerte condicionado por la clase del panel */
.panel-expanded .orus-droppable {
    border: 2px dashed #ff4d4d;
}

.orus-droppable p {
    min-height: 400px;
    padding: 23% 0;
}

/* Estilos para las zonas de drop cuando un canal está siendo arrastrado */
.orus-dragging {
    border: 2px solid #960909; /* Borde con el color de detalle */
    background: linear-gradient(135deg, #1F0101, #2C0B0B, #1F0101); /* Fondo oscuro con un leve degradado */
    background-size: 150% 150%;
    animation: subtleGlow 1.5s ease infinite; /* Animación suave del fondo */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    color: white; /* Texto en blanco para contrastar */
}

@keyframes subtleGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.orus-drag-over {
    border-color: #66afe9;
    background-color: black;
    min-height: 400px;
    z-index: 1000;
}

/* Estilos para las zonas de drop (columnas) cuando tienen un canal cargado */
.orus-contenido-cargado {
    background-color: black;
    min-height: 400px;
}

/* Estilos para el botón de liberar el contenedor */
.orus-liberar-contenedor {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4d;
    color: #ffffff;
    border: none;
    border-radius: 0 0 0 58%; /* Efecto de borde redondeado en la esquina superior derecha */
    width: 80px;
    height: 80px;
    font-size: 50px; /* Tamaño de fuente grande para la "×" */
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    line-height: 70px; /* Ajuste para centrar la "×" verticalmente */
    padding: 0;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-top: -10px;
    display: none; /* Oculto por defecto */
}

/* Muestra el botón de liberar cuando el panel lateral está desplegado */
.panel-expanded .orus-droppable .orus-liberar-contenedor {
    display: block;
}

.orus-liberar-contenedor:hover {
    background-color: #cc0000;
}

/* Estilos para la animación de apariciones */
.orus-droppable .block {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #00ff00;
    opacity: 0;
    animation: appear 0.5s forwards;
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Estilos para el overlay */
.orus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-color: rgba(34, 2, 2, 0); /* Invisible al inicio */
}

/* Estilo global de botón */
.boton_top {
    background: #220202;
    padding: 5px 10px;
    border-radius: 8px;
    color: #fff;
    font-family: Saira;
    font-weight: 600;
    font-size: 15px;
    border: none;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5) inset;
}

.boton_top:hover {
    background: #ff0000;
    cursor: pointer;
}

.boton_top_icon {
    fill: #960909;
}

.boton_top:active {
    background: #ff0000 !important;
}

.boton_top:active .boton_top_icon {
    fill: #ff0000;
}

/* Estilos para las columnas expandibles */
.expandable-column {
    width: 0 !important;
    transition: width 0.3s ease;
    overflow: hidden;
    position: relative;
    max-height: 100vh;
    display: none;
}

.expandable-column.expanded {
    display: block;
    width: 20% !important;
    overflow-y: auto;
}

.slot-content-adjust {
    font-family: Saira;
    text-align: center;
}

.custom-channel-input {
  padding-top: 30%;
  padding-left: 13%;
  min-height: 415px;
}

#custom-channel-url {
  font-family: Saira;
  font-weight: 500;
  font-size: 12px;
  border-radius: 5px;
  color: white;
  background-color: black;
}

#custom-channel-load {
  margin-top: 10px;
  padding: 5px 0px;
  background-color: #210101;
  color: #eab5b5;
  font-family: Saira;
  font-weight: 600;
  font-size: 13px;
}