/* ==========================================================================
   CONFUSA.top - Player Status Redesign (Light Theme System)
   ========================================================================== */

@import url("ligas.css");
@import url("ligas_status_redesign.css");

/* Overrides for Player Status Light Theme */
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(226, 232, 240, 0.95) 100%),
    url("/images/confusa-blue.png") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  overflow-x: hidden !important;
}

#attribute-chart {
  height: 300px !important;
  width: 400px !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.propostas-card {
  overflow-x: visible !important; /* disable overflow scrolls on card */
}

#quadro-container {
  margin: 0 !important;
  color: #1e293b !important;
}

#quadro-superior {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  margin-bottom: 20px !important;
}

#quadro-nomes {
  flex: 1 !important;
  min-width: 280px !important;
}

#quadro-nomes h2 {
  font-family: 'Kanit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 2rem !important;
  color: #0f172a !important;
  margin-bottom: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

#quadro-nomes h3 {
  font-size: 1rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

#quadro-nomes h3 a {
  color: #0284c7 !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#quadro-nomes h3 a:hover {
  color: #0369a1 !important;
}

#quadro-foto {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

#quadro-foto img {
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  object-fit: cover !important;
  height: 100px !important;
  width: 100px !important;
  margin: 0 !important;
}

#info_geral {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  padding: 0 !important;
  margin-top: 20px !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
}

#info-jogos {
  flex: 3 1 500px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  margin: 0 !important;
}

.infoblock {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01) !important;
  border-radius: 12px !important;
  width: auto !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 16px 20px !important;
  text-align: left !important;
}

.infoblock div {
  display: flex !important;
  flex-direction: column !important;
}

.infoblock .informacao {
  margin: 0 !important;
  padding: 0 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
}

.infoblock .informacao_carreira {
  font-family: 'Kanit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 !important;
  padding: 0 !important;
}

.infoblock.large, .infoblock.small {
  width: auto !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

.infoblock .material-symbols-outlined {
  position: static !important;
  float: none !important;
  font-size: 1.8rem !important;
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  padding: 10px !important;
  border-radius: 50% !important;
}

/* Specific colors for yellow and red card stats */
#amarelosSelecao .material-symbols-outlined {
  color: #eab308 !important;
  background: rgba(234, 179, 8, 0.08) !important;
}

#vermelhosSelecao .material-symbols-outlined {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

#info_posicionamento {
  position: relative !important;
  width: 260px !important;
  height: 320px !important;
  flex: 0 0 260px !important;
  background-image: url(/images/campaorodado.png?v=1) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  margin: 0 auto !important;
}

.posicaoCampao {
  background-image: url(/images/posicao.png) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  position: absolute !important;
  width: 40px !important;
  height: 40px !important;
  display: block !important;
}

.posicaoCampao[hidden] {
  display: none !important;
}

/* Career Stats Section */
.carreira-secao {
  margin-top: 30px !important;
  width: 100% !important;
}

.carreira-titulo {
  font-family: "Kanit", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  display: block !important;
  margin-bottom: 10px !important;
}

.carreira-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

/* Personality bars */
.fundo-barra {
  background-color: #e2e8f0 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #334155 !important;
  border-radius: 8px !important;
  margin-bottom: 8px;
  overflow: hidden;
  width: 100% !important;
}

.barra-cheia {
  background-color: #38bdf8 !important; /* modern ciano accent */
  color: #0f172a !important;
}

.texto-barra {
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  top: 4px !important;
}

/* Attributes Form & Layout styling for Light Theme */
#secao-atributos {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 30px !important;
  margin-top: 30px !important;
  width: 100% !important;
}

#form-atributos {
  flex: 2 1 450px !important;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.form-master-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.form-master-group .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-master-group label {
  font-family: 'Kanit', sans-serif;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
}

.form-master-group input[type="range"] {
  width: 100%;
  accent-color: #0284c7;
}

#mostrador-atributos {
  flex: 1 1 300px !important;
  margin: 0 !important;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
}

#attribute-chart {
  height: 300px !important;
  width: 400px !important;
  max-width: 100% !important;
}

#personalidade {
  width: 100% !important;
}

/* Buttons Styling */
.btn-historico {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.btn-historico:hover {
  background-color: #0369a1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25) !important;
}

.btn-historico:active {
  transform: translateY(0) !important;
}

/* Modal Form Overrides */
.modal-content {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04) !important;
}

.modal-content label {
  color: #334155 !important;
}

.modal-content .form-control {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.modal-content .form-control:focus {
  border-color: #0284c7 !important;
  outline: none;
}

.btn-modal-salvar {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
}
.btn-modal-salvar:hover {
  background-color: #0369a1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25) !important;
}

.btn-modal-cancelar {
  background-color: #e2e8f0 !important;
  color: #475569 !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.btn-modal-cancelar:hover {
  background-color: #cbd5e1 !important;
  color: #334155 !important;
  transform: translateY(-1px) !important;
}

/* Force left alignment for all cells and headers in the transfer table */
#tabelaElenco th, #tabelaElenco td {
  text-align: left !important;
  vertical-align: middle !important;
}

#tabelaElenco th:last-child, #tabelaElenco td:last-child {
  text-align: center !important;
  width: 80px !important;
  white-space: nowrap !important;
}

.btn-tabela-acao {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  width: 28px !important;
  height: 28px !important;
}

.btn-tabela-editar {
  color: #0284c7 !important;
}
.btn-tabela-editar:hover {
  background: rgba(2, 132, 199, 0.05) !important;
  border-color: #0284c7 !important;
}

.btn-tabela-excluir {
  color: #ef4444 !important;
}
.btn-tabela-excluir:hover {
  background: rgba(239, 68, 68, 0.05) !important;
  border-color: #ef4444 !important;
}

.performance-clube-tabela {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.7rem !important;
  color: #64748b !important;
  background: rgba(15, 23, 42, 0.04) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  margin-top: 4px !important;
}

.performance-clube-tabela b {
  color: #0f172a !important;
}

/* ==========================================================================
   Responsive Overrides (Mobile First / Clean wrap)
   ========================================================================== */
@media (max-width: 768px) {
  #info-jogos {
    grid-template-columns: 1fr !important; /* single column for card info blocks */
  }

  .carreira-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2x2 grid instead of 4 columns */
  }

  #attribute-chart {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important; /* make plotly square on mobile */
  }

  #mostrador-atributos {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
  }
  
  #info_posicionamento {
    margin: 15px auto !important;
  }
}
