/* Admin panel styles — extends style.css */
@import url('style.css');

.admin-header {
  background: linear-gradient(135deg, #CBA135, #E8C450);
  color: #060C18;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(203,161,53,0.3);
}
.admin-header h1 { font-size: 1rem; color: #060C18; }
.admin-header .badge-admin {
  background: rgba(0,0,0,0.15);
  color: #060C18;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 99px;
}

.admin-tabs {
  display: flex !important;
  gap: 0;
  background: #080E1C;
  border-top: 2px solid #1C2E48;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: fixed !important;
  bottom: 0 !important;
  top: auto !important;
  left: 0;
  right: 0;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 52px;
}

main.page {
  padding-top: var(--header-h, 68px) !important;
  padding-bottom: 80px !important;
}
.admin-tab {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
  transition: all 0.15s;
}
.admin-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #060C18;
  text-align: center;
}
.login-screen .logo-big {
  width: 80px; height: 80px;
  background: var(--green);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}
.login-screen h1 { margin-bottom: 0.5rem; }
.login-screen p  { color: var(--gray-600); margin-bottom: 2rem; font-size: 0.9rem; }

.score-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-input {
  width: 52px;
  text-align: center;
  padding: 0.5rem;
  border: 1.5px solid #1C2E48;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font);
  background: #112038;
  color: #E8EEF8;
}
.score-dash { font-size: 1.2rem; color: var(--gray-400); }

.group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.group-box {
  background: #0C1828;
  border: 1px solid #1C2E48;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.group-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drag-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  cursor: grab;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.drag-player:hover { border-color: var(--green-mid); background: var(--green-light); }
.drag-player.dragging { opacity: 0.5; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.stat-box {
  background: #0C1828;
  border: 1px solid #1C2E48;
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-box .num { font-size: 1.6rem; font-weight: 700; color: var(--green); }
.stat-box .lbl { font-size: 0.72rem; color: var(--gray-600); margin-top: 2px; }

.confirm-btn { margin-top: 0.75rem; }

.phase-banner {
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
