/* PALETA DE CORES OFICIAL OUTPLAY ARENA */
:root {
  --verde-outplay: #003F3B;
  --lime-play: #D7FF00;
  --areia-dourada: #9A6500;
  --fundo-escuro: #002B28;
  --card-bg: #004D48;
  --branco: #FFFFFF;
  --texto-suave: #B0C4C2;
}

/* RESET GLOBAL E CONTROLE DE LARGURA */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Sora', sans-serif;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--fundo-escuro);
  color: var(--branco);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CABEÇALHO PADRÃO (COMPUTADOR) */
.header {
  width: 100%;
  background-color: var(--verde-outplay);
  padding: 0.7rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 2px solid var(--lime-play);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  position: relative;
}

.logo-container {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.logo-img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  color: var(--lime-play);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

/* BOTÃO DA ÁREA RESTRITA */
.btn-admin-access {
  grid-column: 3;
  justify-self: end;
  background: var(--card-bg);
  border: 1px solid var(--lime-play);
  color: var(--lime-play);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.btn-admin-access:hover {
  background-color: var(--lime-play);
  color: var(--verde-outplay);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ff5252;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1.5px solid var(--verde-outplay);
}

/* SUBTÍTULO */
.hero {
  text-align: center;
  padding: 0.9rem 1rem 0.3rem;
  width: 100%;
}

.subtitle {
  color: var(--texto-suave);
  font-size: 0.85rem;
  font-weight: 400;
}

/* CONTAINER PRINCIPAL */
.main-container {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 0.8rem 1rem 2rem;
  flex: 1;
}

.card {
  background-color: var(--verde-outplay);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(215, 255, 0, 0.15);
  width: 100%;
}

/* ETAPAS / PASSO A PASSO */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  width: 100%;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--texto-suave);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.step-item.active .step-number {
  background-color: var(--lime-play);
  color: var(--verde-outplay);
  box-shadow: 0 0 10px rgba(215, 255, 0, 0.3);
}

.step-label {
  font-size: 0.7rem;
  color: var(--texto-suave);
  font-weight: 600;
  text-align: center;
}

.step-item.active .step-label {
  color: var(--lime-play);
}

/* TÍTULOS */
.step-title {
  color: var(--lime-play);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* CARDS DOS ESPORTES */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  width: 100%;
}

.sport-card {
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.9rem 0.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sport-card:hover, .sport-card.selected {
  border-color: var(--lime-play);
  background: rgba(215, 255, 0, 0.08);
  transform: translateY(-2px);
}

.sport-img-wrapper {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  width: 100%;
}

.sport-img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sport-card.selected .sport-img {
  filter: drop-shadow(0px 0px 6px rgba(215, 255, 0, 0.8));
  transform: scale(1.03);
}

.sport-icon-fallback {
  font-size: 1.6rem;
  color: var(--lime-play);
}

.sport-card h3 {
  font-size: 0.78rem;
  color: var(--branco);
}

/* NAVEGADOR DO MÊS COM SETAS SEM FUNDO ESCURO */
.calendar-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 0.8rem;
  background-color: var(--card-bg);
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(215, 255, 0, 0.15);
}

.cal-nav-btn {
  background: transparent !important; /* Sem fundo escuro feio */
  border: none !important;
  color: var(--lime-play);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 0 4px;
}

.cal-nav-btn:hover {
  transform: scale(1.2);
  color: var(--branco);
}

.date-range-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--branco);
  letter-spacing: 0.4px;
  text-transform: capitalize;
}

/* CARROSSEL DOS DIAS COMPACTO */
.days-carousel-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 1.2rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.days-carousel-scroll::-webkit-scrollbar {
  height: 5px;
}
.days-carousel-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.days-carousel-scroll::-webkit-scrollbar-thumb {
  background: rgba(215, 255, 0, 0.3);
  border-radius: 4px;
}

.day-card {
  background-color: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 55px;
  flex-shrink: 0;
}

.day-card:hover {
  border-color: rgba(215, 255, 0, 0.4);
}

.day-card.selected {
  background-color: var(--lime-play);
  border-color: var(--lime-play);
  color: var(--verde-outplay);
  box-shadow: 0 0 10px rgba(215, 255, 0, 0.3);
}

.day-name {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--texto-suave);
  text-transform: uppercase;
}

.day-card.selected .day-name {
  color: var(--verde-outplay);
}

.day-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--branco);
}

.day-card.selected .day-number {
  color: var(--verde-outplay);
}

/* SEÇÕES DE PERÍODO E HORÁRIOS COMPACTOS */
.period-section {
  margin-top: 0.8rem;
}

.period-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--texto-suave);
  margin-bottom: 0.5rem;
  letter-spacing: 0.4px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 0.6rem;
  width: 100%;
}

.time-slot {
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slot:hover {
  border-color: rgba(215, 255, 0, 0.5);
}

.time-slot.selected {
  border-color: var(--lime-play);
  background: var(--lime-play);
  color: var(--verde-outplay);
  box-shadow: 0 0 8px rgba(215, 255, 0, 0.3);
}

.time-text {
  font-size: 0.82rem;
  font-weight: 700;
}

.time-price {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 2px;
  color: #85e89d;
}

.time-slot.selected .time-price {
  color: var(--verde-outplay);
  font-weight: 800;
}

.time-slot.disabled {
  background-color: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.status-booked {
  color: #ff5252 !important;
  font-weight: 700;
}

/* BARRINHA DE RESUMO COMPACTA */
.summary-selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-bg);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-top: 1.2rem;
  border: 1px solid rgba(215, 255, 0, 0.2);
  font-size: 0.82rem;
  color: var(--texto-suave);
}

.summary-total-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lime-play);
}

/* CARD DE RESUMO NO PASSO 3 */
.booking-summary-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(215, 255, 0, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  color: var(--texto-suave);
}

.summary-row strong {
  color: var(--branco);
  text-align: right;
}

.summary-total-row {
  margin-bottom: 0;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
}

.summary-total-row strong {
  color: var(--lime-play);
  font-size: 1.05rem;
  font-weight: 800;
}

/* CAMPOS DE FORMULÁRIO COMPACTOS */
.form-group {
  margin-bottom: 1.1rem;
  text-align: left;
  width: 100%;
}

.form-group label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--lime-play);
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}

.form-input {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--card-bg);
  background-color: var(--card-bg);
  color: var(--branco);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--lime-play);
}

/* CARD PIX COMPACTO */
.pix-box {
  background-color: var(--card-bg);
  border: 1px dashed var(--lime-play);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
  width: 100%;
}

.pix-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--lime-play);
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.pix-desc {
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-bottom: 0.4rem;
}

.pix-key-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

#pix-key {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--lime-play);
  letter-spacing: 0.5px;
}

.btn-copy {
  background-color: var(--lime-play);
  color: var(--verde-outplay);
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
}

.pix-info {
  display: block;
  font-size: 0.7rem;
  color: var(--texto-suave);
}

/* BOTÕES DE NAVEGAÇÃO */
.btn-group {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  width: 100%;
}

.btn-primary {
  background-color: var(--lime-play);
  color: var(--verde-outplay);
  border: none;
  padding: 0.75rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  flex: 2;
  min-width: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--texto-suave);
  border: 1px solid var(--card-bg);
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--texto-suave);
  color: var(--branco);
}

/* BOTÃO WHATSAPP */
.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  border: none;
  padding: 0.9rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

.success-icon {
  font-size: 3rem;
  color: var(--lime-play);
  margin-bottom: 0.6rem;
}

.success-desc {
  color: var(--texto-suave);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* ÍCONES SVG */
.whatsapp-svg-icon {
  vertical-align: middle;
  margin-right: 4px;
  fill: var(--lime-play);
}

.whatsapp-btn-svg {
  vertical-align: middle;
  fill: #FFFFFF;
}

/* ESTILOS DA ÁREA RESTRITA / AGENDA */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background-color: var(--verde-outplay);
  border: 1px solid var(--lime-play);
  border-radius: 14px;
  padding: 1.2rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(215, 255, 0, 0.2);
  padding-bottom: 0.6rem;
}

.modal-header h2 {
  color: var(--lime-play);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.close-btn {
  font-size: 1.4rem;
  color: var(--texto-suave);
  cursor: pointer;
}

.admin-section {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}

.section-title-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.6rem;
}

.section-title-box h3 {
  font-size: 0.88rem;
  color: var(--branco);
}

.icon-warning { color: #ffca28; font-size: 1rem; }
.icon-lime { color: var(--lime-play); font-size: 1rem; }

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pending-card {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid #ffca28;
  padding: 0.6rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pending-info strong {
  color: var(--lime-play);
  font-size: 0.8rem;
}

.pending-info span {
  font-size: 0.7rem;
  color: var(--texto-suave);
  display: block;
  margin-top: 1px;
}

.pending-actions {
  display: flex;
  gap: 4px;
}

.btn-approve {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
}

.btn-reject {
  background-color: #ff5252;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
}

.no-pending-msg {
  font-size: 0.75rem;
  color: var(--texto-suave);
  text-align: center;
  padding: 0.3rem 0;
}

/* CARDS DE HORÁRIOS DA AGENDA */
.time-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.6rem;
}

.admin-time-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 0.7rem;
  border: 1px solid transparent;
}

.admin-time-card.available { border-color: rgba(215, 255, 0, 0.2); }
.admin-time-card.confirmed { border-color: rgba(37, 211, 102, 0.5); background: rgba(37, 211, 102, 0.05); }
.admin-time-card.pending { border-color: rgba(255, 202, 40, 0.5); background: rgba(255, 202, 40, 0.05); }

.time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-tag {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.status-tag.available { background: rgba(215, 255, 0, 0.15); color: var(--lime-play); }
.status-tag.confirmed { background: rgba(37, 211, 102, 0.2); color: #25D366; }
.status-tag.pending { background: rgba(255, 202, 40, 0.2); color: #ffca28; }

.client-detail {
  font-size: 0.72rem;
  color: var(--branco);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.detail-line {
  margin-bottom: 2px;
}

.phone-link {
  color: #25D366;
  text-decoration: underline;
  font-weight: 700;
}

.free-slot-msg {
  font-size: 0.7rem;
  color: var(--texto-suave);
  margin-bottom: 0.6rem;
}

.btn-block-sm, .btn-cancel-sm {
  width: 100%;
  padding: 0.4rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-block-sm { background: var(--verde-outplay); color: var(--lime-play); border: 1px solid var(--lime-play); }
.btn-cancel-sm { background: rgba(255, 82, 82, 0.2); color: #ff5252; border: 1px solid #ff5252; }

/* RODAPÉ */
.footer {
  background-color: var(--verde-outplay);
  border-top: 1px solid rgba(215, 255, 0, 0.15);
  padding: 1rem;
  text-align: center;
  margin-top: auto;
  color: var(--texto-suave);
  font-size: 0.75rem;
  width: 100%;
}

/* REGRAS EXCLUSIVAS PARA CELULAR */
@media (max-width: 600px) {
  .header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.6rem 1rem !important;
    position: relative;
  }

  .logo-container {
    flex: unset !important;
    justify-content: flex-start !important;
    grid-column: unset !important;
  }

  .logo-img {
    max-height: 32px !important;
  }

  .btn-admin-access {
    position: static !important;
    transform: none !important;
    grid-column: unset !important;
    justify-self: flex-end !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }

  .card {
    padding: 1rem 0.6rem;
  }

  .step-label {
    display: none;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .sports-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .sport-card {
    padding: 0.6rem 0.2rem;
  }

  .sport-img-wrapper {
    height: 48px;
  }

  .sport-img {
    max-height: 44px;
  }

  .sport-card h3 {
    font-size: 0.65rem;
  }

  .time-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-grid-admin {
    grid-template-columns: 1fr;
  }

  .summary-selection-bar {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .summary-total-price {
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: row !important;
    gap: 0.4rem;
    width: 100%;
  }

  .btn-primary {
    font-size: 0.72rem;
    padding: 0.65rem 0.3rem;
    flex: 1.4;
  }

  .btn-secondary {
    font-size: 0.72rem;
    padding: 0.65rem 0.3rem;
    flex: 1;
  }
}
