/* ===== INSANOS MC STAFF — TEMA VISUAL ===== */

/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Variáveis globais */
:root {
  --bg: #181818;
  --card: #232323;
  --texto: #e5e5e5;
  --dourado: #c9a84c;
  --cinza: #888888;
  --cinza2: #333333;
  --muted: #666666;
  --vermelho: #e74c3c;
  --vermelho2: #c0392b;
  --amarelo: #f39c12;
  --verde: #2ecc71;
  --font: 'DM Sans', sans-serif;
  --bebas: 'Bebas Neue', sans-serif;
  --radius: 10px;
  --sombra: 0 2px 8px rgba(0,0,0,0.3);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--texto);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3 {
  font-family: var(--bebas);
  color: var(--dourado);
  letter-spacing: 1px;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
  color: var(--dourado);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Componentes reutilizáveis */

/* Container principal */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px;
}

.container-wide {
  max-width: 960px;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--sombra);
  margin-bottom: 16px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--dourado);
  color: #1a1a1a;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--cinza2);
  color: var(--texto);
}

.btn-danger {
  background: var(--vermelho);
  color: #fff;
}

.btn-success {
  background: var(--verde);
  color: #1a1a1a;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
  width: auto;
}

/* Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--cinza);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--texto);
  border: 1px solid var(--cinza2);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--dourado);
}

.form-input::placeholder {
  color: var(--muted);
}

/* Mensagens de feedback */
.msg {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: none;
}

.msg-erro {
  background: rgba(231, 76, 60, 0.15);
  color: var(--vermelho);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.msg-sucesso {
  background: rgba(46, 204, 113, 0.15);
  color: var(--verde);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.msg-info {
  background: rgba(201, 168, 76, 0.15);
  color: var(--dourado);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* Spinner de loading */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cinza2);
  border-top-color: var(--dourado);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Logo centralizada */
.logo-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.logo-wrap img {
  width: 100px;
  height: auto;
}

.logo-wrap h1 {
  margin-top: 8px;
  font-size: 1.8rem;
}

.logo-wrap p {
  color: var(--cinza);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Tela de login centralizada */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Utilitários */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-small { font-size: 0.85rem; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* Responsivo — já é mobile-first, ajustes pra telas maiores */
@media (min-width: 768px) {
  .container {
    padding: 32px 24px;
  }
  
  h1 { font-size: 2.5rem; }
}

/* Badge de perfil de escala nos turnos */
.turno-perfis {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.perfil-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.15);
  color: var(--dourado);
  border: 1px solid rgba(201, 168, 76, 0.3);
  white-space: nowrap;
}

/* Filtros cascata */
.filtros-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filtros-row select {
  flex: 1;
  min-width: 120px;
}

/* Tabs genérico */
.tab-content { display: none; }
.tab-content.ativo { display: block; }