/* =======================================================
   EDATABOOK - LAYOUT SYSTEM
   Base visual padronizada para todo o sistema
   ======================================================= */

/* =========================
   1. VARIÁVEIS DE TEMA
   ========================= */

:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-soft: #1a2435;
  --bg-input: #111827;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --secondary: #374151;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;

  --success: #22c55e;
  --error: #ef4444;

  --radius-lg: 14px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}


/* =========================
   2. RESET GLOBAL
   ========================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
}


/* =========================
   3. CONTAINER
   ========================= */

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
}


/* =========================
   4. CARD PADRÃO
   ========================= */

.card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}


/* =========================
   5. BRAND / HEADER
   ========================= */

.brand-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-soft));
  padding: 10px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 70px;
  height: 70px;
  border-radius: 9px;
}

.brand h1,
.brand h2 {
  margin: 0;
  font-weight: 600;
}

.brand p {
  margin: 0px 0 0 0;
  font-size: 10px;
  color: var(--text-muted);
}


/* =========================
   6. INPUTS E SELECT
   ========================= */

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-input);
  color: var(--text-main);
  margin-bottom: 12px;
  font-size: 14px;
}

input:focus,
select:focus {
  outline: 2px solid var(--primary);
}


/* =========================
   7. BOTÕES
   ========================= */

button {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-danger {
  background: var(--error);
  color: white;
}


/* =========================
   8. LISTAS PADRÃO
   ========================= */

.list-item {
  background: var(--bg-input);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}


/* =========================
   9. TAGS / BADGES
   ========================= */

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--secondary);
}

.tag-success {
  background: var(--success);
}

.tag-error {
  background: var(--error);
}


/* =========================
   10. MENSAGENS DE STATUS
   ========================= */

.status {
  font-size: 14px;
  margin-top: 8px;
  min-height: 18px;
}

.success {
  color: var(--success);
}

.error {
  color: var(--error);
}


/* =========================
   11. UTILITÁRIOS
   ========================= */

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

.text-center { text-align: center; }


/* =========================
   12. RESPONSIVO
   ========================= */

@media (min-width: 768px) {
  .container {
    padding: 20px 20px;
  }

  .card {
    padding: 20px;
  }
}