/* =========================================
   IBCO SCOREBOARD CONTROL PANEL
========================================= */

.ibco-scoreboard-control{
  min-height:100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(59,130,246,.15), transparent 30%),
    linear-gradient(135deg,#050b1f,#0b1e3f);
  color:#fff;
  font-family:Inter,system-ui;
  padding:40px 20px;
}

.ibco-control-shell{
  max-width:1000px;
  margin:0 auto;
}

.ibco-control-header h1{
  font-size:32px;
  font-weight:900;
  margin:0 0 6px;
}

.ibco-control-small{
  color:rgba(255,255,255,.6);
  font-weight:600;
}

/* PANEL */
.ibco-control-panel{
  margin-top:20px;
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
}

/* SELECT */
.ibco-match-select{
  width:100%;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  color:#fff;
  font-weight:700;
}

/* BUTTON */
.ibco-primary-button{
  margin-top:12px;
  width:100%;
  padding:16px;
  border-radius:16px;
  border:none;
  font-weight:900;
  background:#3b82f6;
  color:#fff;
  cursor:pointer;
}

/* GRID */
.ibco-control-grid{
  margin-top:20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.ibco-control-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:24px;
  padding:20px;
  text-align:center;
}

.ibco-control-score{
  font-size:70px;
  font-weight:900;
  color:#facc15;
}

.ibco-control-sets{
  margin-bottom:12px;
  color:rgba(255,255,255,.7);
}

/* BUTTONS */
.ibco-control-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:10px;
}

.ibco-control-buttons button{
  padding:14px;
  border-radius:12px;
  border:none;
  font-weight:900;
  cursor:pointer;
  background:#3b82f6;
  color:#fff;
}

.ibco-control-buttons button.minus{
  background:rgba(255,255,255,.1);
}

.ibco-control-buttons button.setbtn{
  background:rgba(255,255,255,.15);
}

/* TIMER */
.ibco-control-timer{
  margin-top:20px;
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  text-align:center;
}

.ibco-control-timer-display{
  font-size:50px;
  font-weight:900;
  color:#3b82f6;
}

/* ACTIONS */
.ibco-control-actions{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.ibco-control-actions button{
  padding:12px;
  border-radius:12px;
  border:none;
  font-weight:800;
  cursor:pointer;
  background:#3b82f6;
  color:#fff;
}

.ibco-control-actions button.dark{
  background:rgba(255,255,255,.1);
}

/* MOBILE */
@media(max-width:800px){
  .ibco-control-grid{
    grid-template-columns:1fr;
  }

  .ibco-control-actions{
    grid-template-columns:1fr 1fr;
  }
}
/* FIX: text contrast in control panel */
.ibco-scoreboard-control,
.ibco-scoreboard-control *{
  color:#fff;
}

.ibco-scoreboard-control h1,
.ibco-control-card h2{
  color:#fff !important;
}

.ibco-control-small,
.ibco-control-sets{
  color:rgba(255,255,255,.75) !important;
}

.ibco-control-score,
.ibco-control-timer-display{
  color:#3b82f6 !important;
}

.ibco-match-select{
  color:#fff !important;
}

.ibco-match-select option{
  color:#111 !important;
  background:#fff !important;
}

.ibco-control-buttons button,
.ibco-control-actions button,
.ibco-primary-button{
  color:#fff !important;
}

.ibco-control-buttons button.minus,
.ibco-control-buttons button.setbtn,
.ibco-control-actions button.dark{
  color:#fff !important;
}