/* =========================
   RESET & BASE
========================= */
:root {
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --field-green: #14572d;

}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
    font-family: var(--font-main);
    letter-spacing: -0.2px; /* ESSENCIAL para vibe Sportsbet */
    background: radial-gradient(circle at top, #04101f, #020b14 60%);
    color: #e5e7eb;
    min-height: 100vh;
}
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.4px;
}
small, .text-muted {
    letter-spacing: 0;
    font-weight: 500;
}
button, .btn {
    font-weight: 600;
    letter-spacing: -0.2px;
}
/* =========================
   LAYOUT
========================= */
header {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(6px);
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #1e293b;
}

main {
  padding: 24px 16px;
  width: 100%;
  margin: 0 auto;
}

/* Desktop */
@media (min-width: 1024px) {
  main {
    max-width: 1400px;
    padding: 32px 32px;
  }
}
.app-logo-circle {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.app-logo-link:hover .app-logo-circle {
    opacity: 0.9;
}
/* =========================
   CARDS
========================= */
.cardEmpty {
    background: #050b16;
    padding: 20px;
}
.card {
    background: #050b16;
    border: 2px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.card2 {
    background: #070e1b;
    border: 2px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.card2:hover{
    border-color: rgba(20,87,45,0.35);
}
.btn-success{
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border: none;
    font-weight: 600;
}
/* =========================
   FORMULÁRIOS
========================= */
label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #94a3b8;
}

input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  margin-bottom: 14px;
  font-size: 15px;
}

input::placeholder {
  color: #64748b;
}

input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* =========================
   BOTÕES
========================= */
.btn {
  display: block;
  padding: 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #020617;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn.secondary {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #1e293b;
}

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.btn.danger {
  background: #ef4444;
}

/* =========================
   ALERTAS
========================= */
.alert-error {
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid #7f1d1d;
  color: #fecaca;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* =========================
   UTILIDADES
========================= */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.fw-bold {
  font-weight: 700;
}

.textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
}

/* =========================
   CALENDÁRIO
========================= */
    .day-card {
    background: #020617;
    border-radius: 14px;
    padding: 14px;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all .2s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.05);
}

.day-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    border-color: #22c55e;
}

.day-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.day-action {
    font-size: .8rem;
    color: #22c55e;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    background: rgba(31,41,55,.85);
    padding: 22px 24px;
    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    position: relative;
}

/* título */
.calendar-title {
    margin: 0;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

/* setas do mês */
.calendar-nav {
    color: #22c55e;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background .2s ease;
}

.calendar-nav:hover {
    background: rgba(34,197,94,.15);
}

/* botão voltar */
.calendar-back {
    font-size: .85rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color .2s ease;
}

.calendar-back:hover {
    color: #fff;
}

/* =========================
   PARTIDA ATIVA
========================= */
.active-match {
  background: linear-gradient(135deg, #022c22, #064e3b);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
  border: 1px solid #22c55e;
}

.active-badge {
  color: #22c55e;
  font-weight: 700;
  margin-bottom: 8px;
}

.scoreboard {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 22px;
  font-weight: 700;
}

/* =========================
   HISTÓRICO
========================= */
.finished-matches h3 {
  margin-bottom: 12px;
}

.finished-matches ul {
  list-style: none;
  padding: 0;
}

.finished-matches li {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 8px;
}

.opened-matches h3 {
  margin-bottom: 12px;
}

.opened-matches ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opened-matches li {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 8px;
}

/* =========================
   PLAYER CHECK
========================= */
.player-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 13px; /* 👈 menor */
  color: #cbd5f5;
  cursor: pointer;
}

.player-check input {
  margin: 0;
  transform: scale(0.9); /* checkbox menor */
}

/* =========================
   MODAL – LISTA DE JOGADORES
========================= */
.players-scroll {
  max-height: 60vh; /* controla altura */
  overflow-y: auto;
  padding-right: 6px;
}

/* Scroll bonito (opcional, mas recomendado) */
.players-scroll::-webkit-scrollbar {
  width: 6px;
}

.players-scroll::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 10px;
}

.players-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* =========================
   MODAL FIXO
========================= */
.modal-fixed {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-fixed .modal-body {
  overflow-y: auto;
}

/* Área scrollável dos jogadores */
.players-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: 55vh;
  padding-right: 4px;
}

/* Scroll discreto */
.players-scroll::-webkit-scrollbar {
  width: 5px;
}

.players-scroll::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 10px;
}

/* =========================
   SPLIT TIMES
========================= */
.split-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
}

.split-info strong {
  color: #22c55e;
  font-size: 18px;
}

.split-config label {
  font-size: 13px;
  color: #94a3b8;
}

.split-config input {
  background: #020617;
  border: 1px solid #1e293b;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px;
}

/* =========================
   PREVIEW TIMES
========================= */
.teams-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  color:whitesmoke;
}

.team-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
}

.team-box h6 {
  font-size: 13px;
  text-align: center;
  color: #22c55e;
  margin-bottom: 6px;
}

.team-player {
  font-size: 12px;
  color: #cbd5f5;
  padding: 2px 0;
  text-align: center;
}

/* =========================
   SEÇÕES / TIMES
========================= */
.day-section {
  margin-top: 24px;
}

/* GRID PADRÃO */
.teams-grid {
    display: grid;
    gap: 16px;
}

/* MOBILE: 2 COLUNAS */
@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* DESKTOP: mantém layout atual ou auto */
@media (min-width: 769px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

.team-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px;
}

.team-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.team-players {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* =========================
   PARTIDAS (LINHAS)
========================= */
.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 8px;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   MODAL AO VIVO
========================= */
.live-match-body {
  padding: 12px;
}

.live-columns {
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  gap: 12px;
  align-items: flex-start;
}

/* ===== TIMES ===== */
.live-team {
  background: #1f2933;
  border-radius: 10px;
  padding: 8px;
}

.team-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

/* ===== JOGADOR ===== */
.player-row-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 4px;
}

.player-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* ===== ÍCONES ===== */
.player-actions {
  display: flex;
  gap: 4px;
}

.player-actions button {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

/* ===== CENTRO ===== */
.live-center {
  background: #020617;
  border-radius: 10px;
  padding: 10px;
}

.live-score {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.live-events {
  max-height: 260px;
  overflow-y: auto;
}

.event-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .live-columns {
    grid-template-columns: 1fr;
  }

  .live-center {
    order: -1;
  }
}
/* =========================
   FUNDO GERAL
========================= */
.app-bg {
    /*background: radial-gradient(ellipse at center, #020617 0%, #020617 40%, #000814 100%);*/
    min-height: calc(100vh - 72px); /* desconta header */
    padding: 32px 16px;
}

/* =========================
   CAMPO (BORDA VERDE)
========================= */
.field-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    border: 2px solid #14572d; /* verde campo */
    border-radius: 22px;
    box-shadow:
        0 0 0 1px rgba(34,197,94,0.15),
        0 0 40px rgba(0,0,0,0.6);
}

/* =========================
   CONTEÚDO INTERNO
========================= */
.field-content {
    /*background: linear-gradient(180deg, #020617, #020617);*/
    border-radius: 16px;
    padding: 28px;
}

.season-label {
    margin-top: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #227340;
    letter-spacing: 0.4px;
}

/* =========================
   MOBILE AJUSTE
========================= */
@media (max-width: 768px) {
    .field-content {
        padding: 20px 16px;
    }

    .field-wrapper {
        border-radius: 18px;
    }
}

.app-logo-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .3px;
}
.app-header {
    background: linear-gradient(180deg, #020617, #020617);
    border-bottom: 2px solid rgba(133, 133, 133, 0.25); 
}
.stats-footer {
    background: #050b16;
    border-radius: 16px;
}

.stats-tabs {
    display: flex;
    gap: 8px;
}

.stats-tabs button {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(34,197,94,0.25);
    color: #cbd5e1; /* branco suave */
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stats-tabs button:hover {
    background: rgba(34,197,94,0.10);
    color: #ffffff;
    border-color: rgba(34,197,94,0.5);
}

.stats-tabs button.active {
    background: rgba(67, 181, 88, 0.9); /* dark real */
    color: #ffffff;
    border-color: #22c55e;
    box-shadow:
        0 0 0 1px rgba(34,197,94,0.25),
        inset 0 1px 0 rgba(255,255,255,0.04);
}


.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-item {
    color:white;
    background: #070e1b;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.stats-ranking {
    margin-top: 8px;
}

.stats-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #e5e7eb;
}


.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    color:whitesmoke;
}
.ranking-block {
    background: #070e1b;
    border-radius: 12px;
    padding: 14px 16px;
}

.ranking-header {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #e5e7eb;
}

.ranking-block ol {
    padding-left: 18px;
    margin: 0;
}

.ranking-block li {
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.table-modal {
    background: #050b16;
    border-radius: 18px;

    /* BORDA */
    border: 1px solid rgba(20, 87, 45, 0.6);

    /* SHADOW VERDE SUAVE */
    box-shadow:
        0 0 0 1px rgba(20, 87, 45, 0.15),
        0 20px 50px rgba(20, 87, 45, 0.35);
}
/* =========================
   MODAL FOOTER (PADRÃO)
========================= */
.modal-footer {
    background: transparent;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);

    display: flex;
    align-items: center;
    gap: 12px;
}
/* MODAL COM IDENTIDADE DO CAMPO */
.field-modal {
    background: #050b16;
    border-radius: 18px;

    border: 1px solid rgba(20, 87, 45, 0.6);

    box-shadow:
        0 0 0 1px rgba(20, 87, 45, 0.15),
        0 20px 50px rgba(20, 87, 45, 0.35);

    position: relative;
}

/* acabamento interno */
.field-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(20, 87, 45, 0.15);
}

/* header e footer alinhados */
.field-modal .modal-header,
.field-modal .modal-footer {
    border-color: rgba(20, 87, 45, 0.25);
}

.table-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(20, 87, 45, 0.15);
}

.table-standings thead th {
    position: sticky;
    top: 0;
    background: #020617;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.table-modal .modal-header,
.table-modal .modal-footer {
    border-color: rgba(20, 87, 45, 0.25);
}

.table-standings td {
    font-size: 0.85rem;
    border-color: rgba(255,255,255,.05);
}

.table-standings .player-name {
    font-weight: 600;
    color: #e5e7eb;
}

.table-standings .points {
    font-weight: 700;
    color: #22c55e;
}

.table-standings tr.leader {
    background: linear-gradient(90deg,
        rgba(34,197,94,.15),
        rgba(34,197,94,.03)
    );
}

.table-standings tr:hover {
    background: rgba(255,255,255,.04);
}
/* ===============================
   DROPDOWN USUÁRIO (HEADER)
================================ */

.user-dropdown-toggle {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-dropdown-toggle::after {
    border-top-color: #22c55e;
    margin-left: 6px;
}

.user-dropdown-toggle:hover {
    color: #22c55e;
}

/* MENU */
.user-dropdown-menu {
    background: linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.98),
        rgba(2, 6, 23, 0.92)
    );
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.6),
        inset 0 1px 0 rgba(255,255,255,.04);
}

/* ITEM */
.user-dropdown-menu .dropdown-item {
    color: #e5e7eb;
    font-size: 14px;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

/* HOVER PADRÃO */
.user-dropdown-menu .dropdown-item:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* LOGOUT */
.user-dropdown-menu .logout-item {
    color: #fca5a5;
}

.user-dropdown-menu .logout-item:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.app-slogan {
    font-size: 12px;
    color: #22c55e; /* verde principal */
    font-weight: 500;
    letter-spacing: .2px;
}
.text-muted-xs{
    font-size: smaller;
    color:lightgray;
}
.text-muted-sm{
    font-size: small;
    color:lightgray;
}
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: .85rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: #020617;
    border: 1px solid #1e293b;
    color: #e5e7eb;
    outline: none;
    transition: all .2s ease;
    height: 44px;
    font-size: 0.95rem;
}

.input-group input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34,197,94,.3);
}
.nc-pill-btn {
    background: transparent;
    color: #22c55e;
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: all .25s ease;
    cursor: pointer;
}

.nc-pill-btn:hover {
    background: #22c55e;
    color: #0b1220;
}

.nc-pill-btn:active {
    transform: scale(0.96);
}

.nc-pill-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}
.nc-gray-btn {
    background: transparent;
    color: #9ca3af;              /* cinza claro */
    border: 2px solid #d1d5db;   /* borda ainda mais clara */
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: all .25s ease;
    cursor: pointer;
}

.nc-gray-btn:hover {
    background: #e5e7eb;         /* fundo bem claro no hover */
    color: #374151;              /* texto um pouco mais escuro para contraste */
}

.nc-gray-btn:active {
    transform: scale(0.96);
}

.nc-gray-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(209,213,219,.6);
}

/* ===============================
   BOTÃO EXCLUIR ESTILO PREMIUM
================================ */

.btn-delete {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 500;

    background-color: rgba(220, 38, 38, 0.08); /* quase transparente */
    border: 1px solid rgba(220, 38, 38, 1);    /* borda 100% */
    color: #b91c1c; /* vermelho mais fechado */

    transition: all 0.2s ease;
}

/* Hover */
.btn-delete:hover {
    background-color: rgba(220, 38, 38, 0.18); /* menos transparente */
    color: #991b1b;
}

/* Active (clique) */
.btn-delete:active {
    transform: scale(0.97);
}
*,
*::before,
*::after {
    box-sizing: border-box;
}

.modal-system .modal-dialog {
    transform: translateY(-12px) scale(0.97);
    opacity: 0;
    transition: all .38s cubic-bezier(.16,1,.3,1);
}

.modal-system.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}