/* ===== Lineup modal polish (dark glass) ===== */
#lineupModal .modal-content.glass{
  background: rgba(15, 18, 22, 0.94);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
}

#lineupModal .modal-header{
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

#lineupModal .modal-footer{
  border-top: 1px solid rgba(255,255,255,0.10);
}

#lineupModal .modal-title{
  color: #fff;
}

#lineupModal .nav-pills .nav-link{
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

#lineupModal .nav-pills .nav-link.active{
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
}

/* table */
#lineupModal .table{
  color: #fff;
  margin-bottom: 0;
}

#lineupModal .table thead th{
  background: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.90) !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 2px 0 rgba(255,255,255,0.06);
  background-clip: padding-box;
}

#lineupModal .table tbody td{
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

#lineupModal .table tbody tr:hover{
  background: rgba(255,255,255,0.06);
}

/* sticky header inside modal */
#lineupModal .table-responsive{
  max-height: min(60vh, 520px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
}

#lineupModal thead th{
  position: sticky;
  top: 0;
  z-index: 3;
}

/* name column readability */
#lineupModal td.lu-name,
#lineupModal .lu-name{
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* checkbox/radio visible on dark */
#lineupModal .form-check-input{
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.40);
}

#lineupModal .form-check-input:checked{
  background-color: #0d6efd; /* bootstrap primary */
  border-color: #0d6efd;
}

#lineupModal .form-check-input:disabled{
  opacity: 0.35;
  cursor: not-allowed;
}

/* compact spacing */
#lineupModal .table td,
#lineupModal .table th{
  padding: 0.55rem 0.6rem;
  vertical-align: middle;
}

/* message line */
#luMsg{
  color: rgba(255,255,255,0.75) !important;
}

/* ensure close button visible */
#lineupModal .btn-close{
  filter: invert(1);
  opacity: 0.9;
}
#lineupModal .btn-close:hover{
  opacity: 1;
}

.scorer-list .goal-own .txt{
  color: #ff6b6b;
  font-weight: 600;
}


body {
    background: #0b0d10;
    color: #e8eaed;
}
.glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    }
.panel {
    padding: 18px;
}
.team-name {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.team-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.timeout-chips{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.timeout-chip{
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #e8eaed;
}
.timeout-chip.active{
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.timeout-chip:disabled{
    opacity: 0.4;
    cursor: not-allowed;
}
.text-md-end .timeout-chips{
    justify-content: flex-end;
}
.score-box {
    font-size: 68px;
    font-weight: 800;
    line-height: 1;
}
.big-plus {
    font-size: 28px;
    padding: 18px 24px;
}
.status-pill {
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    background: #20252b;
    color: #c7ccd3;
    font-size: 12px;
}
.scorer-list li {
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    padding-left: 0.5rem;
}
.scorer-list.text-md-end li {
    border-left: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
    padding-right: 0.5rem;
}

.card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-item .txt {
    opacity: 0.95;
}

.card-item .rm {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
}
.card-item .rm:hover {
    color: #fff;
}

/* Confirm delete modal: less transparent + white text */
#confirmDeleteModal .modal-content.glass {
    background: rgba(15, 18, 22, 0.92); /* less transparent */
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

#confirmDeleteModal .modal-header,
#confirmDeleteModal .modal-body,
#confirmDeleteModal .modal-footer {
    color: #fff;
}

#confirmDeleteModal #confirmDeleteText {
    color: #fff !important; /* overrides text-muted */
    opacity: 0.95;
}

/* ===== Make unchecked checkboxes/radios clearly visible ===== */
#lineupModal .form-check-input{
  appearance: none;              /* override native look */
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-content: center;
  margin: 0;
  cursor: pointer;

  background: rgba(255,255,255,0.08);      /* visible fill even when unchecked */
  border: 2px solid rgba(255,255,255,0.55);/* visible ring */
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35) inset; /* contrast on dark */
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

#lineupModal .form-check-input:hover{
  border-color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.12);
}

#lineupModal .form-check-input:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.35);
}

/* checkbox checkmark */
#lineupModal .form-check-input[type="checkbox"]::after{
  content: "";
  width: 10px;
  height: 6px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .12s ease;
  opacity: 0.95;
}

#lineupModal .form-check-input[type="checkbox"]:checked{
  background: #0d6efd;
  border-color: #0d6efd;
}
#lineupModal .form-check-input[type="checkbox"]:checked::after{
  transform: rotate(-45deg) scale(1);
}

/* radio dot */
#lineupModal .form-check-input[type="radio"]{
  border-radius: 999px;
}
#lineupModal .form-check-input[type="radio"]::after{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  transform: scale(0);
  transition: transform .12s ease;
  opacity: 0.95;
}

#lineupModal .form-check-input[type="radio"]:checked{
  background: #0d6efd;
  border-color: #0d6efd;
}
#lineupModal .form-check-input[type="radio"]:checked::after{
  transform: scale(1);
}

/* disabled state */
#lineupModal .form-check-input:disabled{
  opacity: 0.35;
  cursor: not-allowed;
}


/* ===== FOUL COUNTERS ===== */
.fouls-box{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
}

.fouls-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fouls-label{
  font-weight: 600;
  letter-spacing: .2px;
  opacity: .95;
}

.fouls-period{
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  opacity: .9;
}

.fouls-controls{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}

.fouls-count{
  text-align: center;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  padding: 6px 0;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
}

.fouls-btn{
  height: 42px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
}

.fouls-hint{
  margin-top: 6px;
  min-height: 18px; /* da ne skace layout */
}

/* ===== TIMEOUT COUNTERS ===== */
.timeouts-box{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  display: grid;
  gap: 8px;
}

.timeouts-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeouts-label{
  font-weight: 600;
  letter-spacing: .2px;
  opacity: .95;
}

.timeouts-row{
  display: grid;
  grid-template-columns: 64px 40px 1fr 40px;
  gap: 8px;
  align-items: center;
}

.timeouts-half{
  font-size: 12px;
  opacity: .85;
}

.timeouts-count{
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  padding: 6px 0;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
}

.fouls-count.is-warning{
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(113, 63, 18, 0.3);
}

.fouls-count.is-danger{
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(127, 29, 29, 0.3);
}

.timeouts-btn{
  height: 34px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
}


/* Officials */
#officialsPanel .officials-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.official-card{
  grid-column: span 4;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.official-label{
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.official-input{
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.official-input:disabled{
  opacity: 0.70;
  cursor: not-allowed;
}

.official-hint{
  grid-column: span 12;
  padding: 0 2px;
}

/* Responsive */
@media (max-width: 768px){
  .official-card{ grid-column: span 12; }
}


/* Collapsible officials */
#officialsBody.officials-collapsed{
  display: none;
}

#officialsBody.officials-expanded{
  display: block;
}


/* Officials open/close */
#officialsBody.officials-collapsed {
  display: none;
}

#officialsBody.officials-expanded {
  display: block;
}

/* (opcionalno) mali fade */
#officialsBody {
  transition: all .15s ease;
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 992px) {
  .officials-grid { grid-template-columns: 1fr; }
}

/* ===== OFFICIALS (clean, consistent) ===== */
#officialsPanel #officialsBody.officials-collapsed { display: none; }
#officialsPanel #officialsBody.officials-expanded { display: block; }

#officialsPanel .officials-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#officialsPanel .official-card{
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

#officialsPanel .official-label{
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}

#officialsPanel .official-input{
  width: 100%;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

#officialsPanel .official-input::placeholder{
  color: rgba(255,255,255,0.45);
}

#officialsPanel .official-input:disabled{
  opacity: 0.70;
  cursor: not-allowed;
}

#officialsPanel .official-hint{
  grid-column: 1 / -1;
  padding: 0 2px;
}

@media (max-width: 992px){
  #officialsPanel .officials-grid{ grid-template-columns: 1fr; }
}


/* ===============================
   GOAL FLAGS (Penal / 10m)
================================ */
.goal-flags {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.goal-flags .form-check {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.goal-flags .form-check-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.goal-flags .form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ===== Readability fixes: officials + number inputs on dark ===== */
#officialsPanel .text-muted,
#officialsPanel .small.text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

#officialsPanel .officials-grid > div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#officialsPanel .officials-grid .form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

#officialsPanel .form-control,
#scoreModal .form-control,
#scorerModal .form-control,
#scorerModal .form-select,
#lineupModal .form-control,
#lineupModal .form-select {
  background: rgba(0, 0, 0, 0.26) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  caret-color: #fff;
}

#officialsPanel .form-control::placeholder,
#scoreModal .form-control::placeholder,
#scorerModal .form-control::placeholder,
#scorerModal .form-select::placeholder,
#lineupModal .form-control::placeholder,
#lineupModal .form-select::placeholder {
  color: rgba(255, 255, 255, 0.58) !important;
}

#officialsPanel .form-control:focus,
#scoreModal .form-control:focus,
#scorerModal .form-control:focus,
#scorerModal .form-select:focus,
#lineupModal .form-control:focus,
#lineupModal .form-select:focus {
  border-color: rgba(59, 130, 246, 0.7) !important;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.24) !important;
}

#scorerModal .form-select option,
#lineupModal .form-select option {
  background: #11161d;
  color: #fff;
}
