/* Estilos Gerais das Janelas do Jogo (game_modals.css) */

.bf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.bf-modal-overlay.active {
  display: flex;
}

.bf-modal-window {
  background: var(--surface-navy, #0a2a4a);
  border: 2px solid #1a5276;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  width: 90%;
  max-width: 800px;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bf-modal-header {
  background: linear-gradient(180deg, #0f3d68 0%, #082238 100%);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1a5276;
}

.bf-modal-header h3 {
  margin: 0;
  font-size: 15px;
  color: var(--brand-accent, #ffd600);
}

.bf-modal-close-btn {
  background: #c0392b;
  color: #fff;
  border: none;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.bf-modal-close-btn:hover {
  background: #e74c3c;
}

.bf-modal-content {
  padding: 14px;
  overflow-y: auto;
  max-height: 80vh;
}

.bf-modal-footer {
  background: #06192a;
  padding: 8px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #1a5276;
}

/* Janela de Tabelas */
.tabelas-window-container {
  background: #0a2a4a;
  border: 2px solid #1a5276;
  width: 880px;
  max-width: 95vw;
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.tabelas-top-tabs {
  background: #06192a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #1a5276;
}

.tabelas-tab-btn {
  background: #0f3d68;
  color: #ccc;
  border: 1px solid #1a5276;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
}

.tabelas-tab-btn.selected {
  background: var(--brand-primary, #00a651);
  color: #fff;
  border-color: #008741;
}

.tabelas-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  padding: 10px;
}

.tabelas-side-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #1a5276;
  border-radius: 4px;
  padding: 6px;
  font-size: 11px;
}

.tabelas-side-card-title {
  font-weight: bold;
  color: var(--brand-accent, #ffd600);
  border-bottom: 1px solid #1a5276;
  padding-bottom: 3px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

/* Janela Estádio */
.estadio-window-container {
  background: #082238 url('../assets/fundos/fundo_estadio.jpg') no-repeat center center;
  background-size: cover;
  border: 2px solid #1a5276;
  border-radius: 6px;
  width: 720px;
  max-width: 95vw;
  color: #fff;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.estadio-header-title {
  background: rgba(0,0,0,0.7);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 15px;
  color: var(--brand-accent, #ffd600);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.estadio-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.estadio-dark-panel {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #1a5276;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
}

.estadio-panel-heading {
  font-weight: bold;
  color: var(--brand-accent, #ffd600);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 4px;
  margin-bottom: 8px;
  font-size: 12px;
}

.estadio-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.estadio-price-input {
  width: 60px;
  padding: 2px 4px;
  font-weight: bold;
  text-align: right;
  background: #0a2a4a;
  color: #fff;
  border: 1px solid #1a5276;
  border-radius: 3px;
}

.estadio-bottom-bar {
  background: rgba(0,0,0,0.85);
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

/* Janela Juniores */
.juniores-window-container {
  background: #0a2a4a;
  border: 2px solid #1a5276;
  border-radius: 6px;
  width: 820px;
  max-width: 95vw;
  color: #fff;
  overflow: hidden;
}

.juniores-header {
  background: #06192a;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1a5276;
}

.juniores-table-wrap {
  padding: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.juniores-dev-bar-outer {
  background: #333;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  width: 90px;
}

.juniores-dev-bar-fill {
  background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
  height: 100%;
}

.juniores-dev-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
  color: #fff;
}

/* Janela Times Browser */
.times-window-container {
  background: #0a2a4a;
  border: 2px solid #1a5276;
  border-radius: 6px;
  width: 880px;
  max-width: 95vw;
  color: #fff;
  overflow: hidden;
}

.times-window-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  padding: 10px;
}

.times-tree-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #1a5276;
  border-radius: 4px;
  padding: 8px;
  font-size: 11px;
  height: 380px;
  overflow-y: auto;
}

.times-team-header-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #1a5276;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Janela Procura */
.procura-window-container {
  background: #0a2a4a;
  border: 2px solid #1a5276;
  border-radius: 6px;
  width: 840px;
  max-width: 95vw;
  color: #fff;
  overflow: hidden;
}

.procura-filters-panel {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-bottom: 1px solid #1a5276;
}

.procura-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 11px;
  margin-top: 6px;
}

.procura-filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.procura-filter-item select,
.procura-filter-item input {
  padding: 2px 4px;
  font-size: 11px;
  width: 130px;
}
