*{margin:0;padding:0;box-sizing:border-box;}

body{
    margin:0;
    font-family:'Poppins',sans-serif;
    background:linear-gradient(160deg,#a1c4fd,#c2e9fb);
    color:#0b2545;
}

/* BANNER */
.bannerindex{
width:100%;
height:28vh;
min-height:200px;
max-height:400px;
background-image:url('../img/banner.png');
background-size:cover;
background-position:center;
border-bottom:5px solid #4e9af1;
border-radius:0 0 20px 20px;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
position:relative;
}

.bannerlive{
width:100%;
height:5vh;
background:#003087;
border-bottom:5px solid #4e9af1;
border-radius:0 0 20px 20px;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
position:relative;
}

.banner{
width:100%;
height:250px;
background-image:url('../img/banner.png');
background-size:cover;
background-position:center;
border-bottom:5px solid #4e9af1;
border-radius:0 0 20px 20px;
}

.timebar{
padding:15px;
text-align:center;
font-size:22px;
font-weight:700;
color:white;
background:linear-gradient(to right,#4e9af1,#67c8f3);
}

.main{display:flex;padding:20px;}

.content{
flex:1;
background:white;
padding:25px;
border-radius:15px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

/* MENÚ */

.menu{
width:260px;
margin-left:20px;
background:#67c8f3;
border-radius:15px;
padding:20px 10px;
box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.menu h2{
text-align:center;
margin-bottom:20px;
color:white;
}

.menu a{
display:block;
padding:14px;
margin:10px 0;
text-align:center;
color:white;
text-decoration:none;
border-radius:12px;
background:linear-gradient(135deg,#4e9af1,#67c8f3);
transition:0.3s;
font-weight:600;
}

.menu a:hover{
background:linear-gradient(135deg,#23568f,#1e40af);
transform:translateX(5px);
}

.box{
margin-top:20px;
padding:25px;
border-radius:15px;
background:#f8fafc;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
text-align:center;
}

.box2{
margin-top:20px;
padding:20px;
border-radius:15px;
background:#f8fafc;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.box h3{
margin-bottom:10px;
color:#1e40af;
}

.box p{
line-height:1.6;
color:#333;
}

select{
padding:10px;
border-radius:8px;
border:1px solid #ccc;
margin-top:10px;
width:60%;
}

table{
width:100%;
margin-top:20px;
border-collapse:collapse;
}

.table-log{
margin-top:20px;
width:100%;
border-collapse:collapse;
font-size:13px;
background:white;
border-radius:10px;
overflow:hidden;
}

th{
background:#4e9af1;
color:white;
padding:10px;
}

td{
padding:8px;
text-align:center;
border-bottom:1px solid #ddd;
}

tr:hover{
background:#f1f5f9;
}

.total{
background:#1e40af;
color:white;
font-weight:bold;
}

.btn{
margin-top:15px;
padding:10px 18px;
background:#22c55e;
color:white;
border:none;
border-radius:10px;
font-size:15px;
font-weight:700;
cursor:pointer;
}

.select-log,input{
margin-top:10px;
padding:12px;
width:260px;
border-radius:10px;
border:1px solid #ccc;
font-size:15px;
font-weight:600;
}

/* STATS */
#statsBox{
  display:flex;
  justify-content:center;
  gap:25px;
  flex-wrap:wrap;
  margin:20px auto;
}

.stat-card{
  background:linear-gradient(135deg,#ffffff,#e0f2fe);
  padding:20px 30px;
  border-radius:18px;
  min-width:140px;
  text-align:center;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.stat-number{
  font-size:2.2em;
  font-weight:bold;
  color:#1d4ed8;
}

.stat-label{
  font-weight:600;
  color:#334155;
}


.eqsl-btn{
padding:7px 10px;
border-radius:8px;
text-decoration:none;
font-size:14px;
font-weight:700;
margin:0 2px;
display:inline-block;
transition:0.2s;
cursor:pointer;
}

.eqsl-btn:hover{
transform:scale(1.1);
}

.preview{background:#f59e0b;color:white;}
.png{background:#4e9af1;color:white;}
.pdf{background:#ef4444;color:white;}

.utc-inline{
font-size:18px;
margin-top:5px;
}

/* FECHA Y HORA */
.timebarindex{
width:100%;
padding:18px;
text-align:center;
font-size:25px;
font-weight:700;
color:white;
background:linear-gradient(to right,#4e9af1,#67c8f3);
letter-spacing:1px;
text-shadow:1px 1px 3px rgba(0,0,0,0.3);
position:relative;
}

/* BOTÓN ADMIN */
#adminBtnHeader{
position:absolute;
right:20px;
top:50%;
transform:translateY(-50%);
padding:10px 20px;
background: linear-gradient(135deg,#4e9af1,#67c8f3);
border:none;
border-radius:16px;
color:white;
font-weight:700;
cursor:pointer;
box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

/* 🔥 STATUS BAR → ahora contenedor de bandas */
.status{
  width:100%;
  padding:10px;

  display:flex;
  flex-direction:row;   /* 🔥 IMPORTANTE */
  justify-content:center;
  align-items:center;

  gap:10px;
  flex-wrap:wrap;       /* para que baje si no cabe */

  font-size:16px;
  font-weight:700;
  color:white;
}

/* OFFLINE (cuando no hay nada) */
.status.offline{
  background:linear-gradient(135deg,#6b7280,#374151);
  justify-content:center;
}

/* ON AIR (cuando hay bandas) */
.status.onair{
  background:#0f172a;
  box-shadow:0 0 15px rgba(34,197,94,0.4);
}
.band-mini{
  display:inline-block;   /* 🔥 importante */
  white-space:nowrap;     /* 🔥 evita saltos raros */

  padding:6px 12px;
  border-radius:10px;
  font-size:14px;
  font-weight:bold;

  background:#00ff00;
  color:#000;
}
.band-mini.old{
  background:#f97316;
}
.status.offline{
background:linear-gradient(135deg,#6b7280,#374151);
}

/* LAYOUT */
.main{display:flex;padding:20px;}
.content{
flex:1;
padding:20px 30px;
background:rgba(255,255,255,0.9);
border-radius:15px;
box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

/* TARJETAS ACTIVIDAD */
.actividad-card{
display:flex;
align-items:center;
gap:20px;
background:white;
border-radius:15px;
padding:15px;
margin-bottom:20px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
transition:0.3s;
}

.actividad-card:hover{
transform:scale(1.02);
}

.actividad-img{
width:180px;
height:120px;
object-fit:cover;
border-radius:10px;
}

.actividad-info{flex:1;}

.actividad-titulo{
font-size:22px;
font-weight:700;
color:#1a3f7d;
margin-bottom:10px;
}

.estadisticas{
display:flex;
gap:15px;
flex-wrap:wrap;
}

.stat{
background:#e3f2fd;
padding:8px 12px;
border-radius:10px;
font-weight:600;
}

.onair-badge{
  background:#00ff00;
  color:#000;
  padding:6px 16px;
  border-radius:12px;
  font-size:18px;
  font-weight:bold;
  margin-left:12px;
  display:inline-block;
  box-shadow:0 4px 10px rgba(0,0,0,0.2);
  animation:pulse 1.5s infinite;
}

@keyframes pulse{
  0%{transform:scale(1);}
  50%{transform:scale(1.08);}
  100%{transform:scale(1);}
}

/* UTC */
#utc{
  color:white;
  text-align:center;
  font-size:1.2em;
  padding:8px;
}
#utci{
  background:#003087;
  color:white;
  text-align:center;
  font-size:1.2em;
  padding:8px;
}

/* BANNER */
header img{
  width:100%;
  height:180px;
  object-fit:cover;
}

/* USER INFO */
#userInfo{
  text-align:center;
  font-weight:bold;
  font-size:1.1em;
  margin:10px 0;
}

/* BOTONES (NO TOCADOS) */
#userBar{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:25px auto;
  padding:12px 18px;
  background:#f1f5f9;
  border-radius:20px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  width:fit-content;
}

.user-btn{
  padding:11px 20px;
  font-size:1.02em;
  background:white;
  border:none;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  transition:all 0.25s ease;
}

.user-btn:hover{
  background:#2563eb;
  color:white;
  transform:translateY(-2px);
}

.user-btn.active{
  background:#2563eb;
  color:white;
}

.live-btn{
  background:#f97316;
  color:white;
}

.live-btn:hover{
  background:#ea580c;
}


/* CONTENEDOR GENERAL */
.tablePanelContainer{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:15px;
  margin:20px auto;
  max-width:1400px;
  padding:15px;
  background:rgba(255,255,255,0.85);
  border-radius:15px;
  backdrop-filter:blur(6px);
}

/* BANDAS */
#bandActivityBox{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:160px;
}

.band-box{
  padding:10px 18px;
  border-radius:14px;
  font-weight:bold;
  font-size:1em;
  background:#00ff00;
  color:#000;
}

/* TABLA */
.table-container{
  overflow-x:auto;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,.2);
  background:white;
  padding:10px;
}

#liveTable{
  border-collapse:collapse;
  font-size:1.05em;
}

#liveTable th{
  padding:6px;
  border:1px solid #cbd5e1;
  background:#2563eb;
  color:white;
}

#liveTable td{
  padding:4px;
  border:1px solid #e2e8f0;
  color:#0f172a;
}

.latest{
  background:#fef3c7 !important;
}

/* PAISES */
#countryPanel{
  min-width:160px;
  max-height:500px;
  overflow-y:auto;
  background:white;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,.2);
  padding:10px;
}

.country-box{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
  padding:6px 8px;
  border-radius:10px;
  background:#f8fafc;
  font-weight:bold;
  font-size:0.95em;
}

.country-box img{
  width:24px;
  height:16px;
  border:1px solid #ccc;
}
