/* ==========================================================================
   GABINE FOTO AI — DESIGN SYSTEM ESCURO PROFISSIONAL
   Inspirado no padrão modular escuro (Grafite, Cinza Escuro, Linhas Sutis e Azul Sólido)
   ========================================================================== */

:root {
  /* Cores de Fundo (Grafite / Slate Dark) */
  --bg-primary: #0c0e12;
  --bg-main: #0c0e12;
  --bg-surface: #14171d;
  --bg-surface-hover: #1b2028;
  --bg-card: #14171d;
  --bg-card-hover: #1a1e26;
  --bg-sidebar: #101318;

  /* Bordas Sutis e Delicadas */
  --border-subtle: #1e232b;
  --border-color: #242933;
  --border-focus: #3b82f6;

  /* Tipografia Neutra e Legível */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Destaque Institucional / Azul Elegante */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: rgba(37, 99, 235, 0.12);
  --accent-blue: #3b82f6;
  --accent-purple: #3b82f6;
  --accent-pink: #2563eb;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;

  /* Gradientes Mais Sóbrios e Tecnológicos */
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-card: none;

  /* Sombras Precisas */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 16px rgba(37, 99, 235, 0.25);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.15s ease-in-out;
}

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

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #93c5fd;
  text-decoration: none;
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 {
  font-size: 1.85rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--text-secondary);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: #1e40af;
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: #384252;
  color: #ffffff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  border-color: #2f3644;
}

/* Badges e Status (Estilo Minimalista Monocromático Preto & Branco) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #14171d;
  color: #f1f5f9;
  border: 1px solid #2d3340;
}

.badge-success {
  background: #101318;
  color: #f8fafc;
  border: 1px solid #333d4d;
}

.badge-warning {
  background: #101318;
  color: #cbd5e1;
  border: 1px solid #2a313d;
}

.badge-danger {
  background: #101318;
  color: #e2e8f0;
  border: 1px solid #3d2828;
}

.badge-info {
  background: #181c24;
  color: #e2e8f0;
  border: 1px solid #323a48;
}

/* Formulários */
.form-group {
  margin-bottom: 1.2rem;
}

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

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  background-color: #0d1015;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Modais e Overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 550px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

/* Utilitários */
.text-gradient {
  color: var(--text-primary);
  font-weight: 700;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}