/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
}

/* LAYOUT */
.app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #1f2937;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.sidebar h1 {
  padding: 20px;
  font-size: 18px;
  text-align: center;
  background: #111827;
}

.sidebar a {
  padding: 14px 20px;
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
  background: #374151;
  color: #fff;
}

/* MAIN */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  background: #fff;
  padding: 14px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h2 {
  font-size: 18px;
}

.header button {
  background: #ef4444;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* CONTENT */
.content {
  padding: 24px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h3 {
  font-size: 14px;
  color: #6b7280;
}

.card p {
  font-size: 26px;
  font-weight: bold;
  margin-top: 8px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }

  .sidebar h1 {
    font-size: 14px;
    padding: 10px;
  }

  .sidebar a {
    text-align: center;
    padding: 12px;
    font-size: 12px;
  }
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* =========================
   TABELAS PADRÃO
========================= */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

.table th {
  background: #f9fafb;
  color: #374151;
}

.table tr:hover {
  background: #f3f4f6;
}

/* =========================
   TOP BAR (FILTROS / BOTÕES)
========================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar input,
.top-bar select {
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.top-bar button {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* =========================
   BADGES (STATUS)
========================= */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-ativo {
  background: #dcfce7;
  color: #166534;
}

.badge-inativo {
  background: #fee2e2;
  color: #991b1b;
}

.badge-vendido {
  background: #e0e7ff;
  color: #1e3a8a;
}

.badge-descartado {
  background: #fee2e2;
  color: #991b1b;
}

/* =========================
   AÇÕES
========================= */
.acoes {
  display: flex;
  gap: 8px;
}

.btn-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.btn-edit {
  color: #2563eb;
}

.btn-delete {
  color: #dc2626;
}

/* =========================
   BOTÕES
========================= */
.btn-primary {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-secondary {
  background: #e5e7eb;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* =========================
   MODAL PADRÃO
========================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 6px;
  padding: 20px;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

