/* ==========================================================================
   DT Check-in - Design System & Global Styles
   Tema: Action Figures, Colecionáveis & Torneios Geek
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Cores Base */
  --bg-main: #0a0d14;
  --bg-surface: #111726;
  --bg-surface-elevated: #182033;
  --bg-glass: rgba(17, 23, 38, 0.75);
  --bg-input: rgba(10, 13, 20, 0.7);

  /* Acentos Vibrantes / Action Figure & Geek Neon */
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.35);
  --accent-gold: #ffb703;
  --accent-gold-glow: rgba(255, 183, 3, 0.35);
  --accent-green: #00f59b;
  --accent-green-glow: rgba(0, 245, 155, 0.35);
  --accent-red: #ff3366;

  /* Tema Dragon Tower (Fogo & Misticismo) */
  --dragon-flame: #ff4d00;
  --dragon-flame-glow: rgba(255, 77, 0, 0.4);
  --dragon-gold: #ffb703;
  --dragon-ruby: #e63946;

  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #ff4500 0%, #ff8500 50%, #7928ca 100%);
  --grad-dragon: linear-gradient(135deg, #ff3b00 0%, #ff9e00 100%);
  --grad-card: linear-gradient(145deg, rgba(24, 32, 51, 0.85) 0%, rgba(13, 17, 28, 0.96) 100%);
  --grad-gold: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(255, 77, 0, 0.18) 0%, transparent 70%);

  /* Texto */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0d14;

  /* Bordas & Sombras */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 240, 255, 0.5);
  --border-glow: 0 0 15px rgba(0, 240, 255, 0.25);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.7);

  /* Dimensões & Raio */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Fontes */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  min-height: 100%;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fundo Dinâmico com malha sutil e iluminação */
body {
  background-image: 
    var(--grad-glow),
    radial-gradient(circle at 10% 90%, rgba(121, 40, 202, 0.12) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 600px, 100% 100%, 32px 32px;
  background-attachment: fixed;
}

/* Tipografia */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #fff;
}

/* Botões Estilizados */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, #00f59b 0%, #00a86b 100%);
  color: #052014;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 245, 155, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 155, 0.45);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* Badges e Pílulas */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-purple {
  background: rgba(157, 78, 221, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.badge-gold {
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.badge-green {
  background: rgba(0, 245, 155, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 245, 155, 0.3);
}

/* Indicador de Status do Banco de Dados */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-dot.local {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Campos de Formulário Modernos */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: var(--accent-cyan);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.form-input, .form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--border-glow);
  background: rgba(14, 20, 32, 0.9);
}

.form-input:focus + .input-icon,
.input-container:focus-within .input-icon {
  color: var(--accent-cyan);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Checkbox estilizado */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

.form-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  cursor: pointer;
}

/* Utilitários */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
