@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-body: #f8fafc;
  --sidebar-bg: #0b132b;
  --primary: #3a48e8;
  --primary-hover: #2d38c2;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #f1f5f9;
  --card-bg: #ffffff;
  --success-bg: #d1fae5;
  --success-text: #059669;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-body);
  margin: 0;
  display: flex;
  color: var(--text-main);
  min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  color: white;
  position: fixed;
  z-index: 1000;
}

.brand {
  padding: 30px 25px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-menu {
  padding: 10px 0;
}

.nav-item {
  padding: 18px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.nav-item:hover {
  color: white;
}

.nav-item.active {
  background: rgba(58, 72, 232, 0.1);
  color: white;
  border-left: 4px solid var(--primary);
}

/* --- CONTEÚDO PRINCIPAL --- */
.content {
  flex: 1;
  margin-left: 260px;
  padding: 40px 50px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sidebar-bg);
  margin: 0;
}

/* --- CARTÕES (CARDS) --- */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.card-table {
  padding: 0;
  overflow: hidden;
}

/* --- FORMULÁRIOS E FILTROS --- */
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
  box-sizing: border-box;
  transition: 0.2s;
  font-family: 'Inter', sans-serif;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 72, 232, 0.1);
}

/* --- BOTÕES --- */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
}

.btn-primary {
  background: var(
    --sidebar-bg
  ); /* Seguindo a imagem, o botão "Novo Cliente" é bem escuro */
  color: white;
}
.btn-primary:hover {
  background: #1e293b;
}

.btn-action {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #475569;
  padding: 0;
  transition: 0.2s;
}
.btn-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fafc;
}

/* --- TABELAS --- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #ffffff;
  padding: 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-color);
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  vertical-align: middle;
}

/* --- STATUS E BADGES --- */
.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-active {
  background: var(--success-bg);
  color: var(--success-text);
}
.badge-expired {
  background: #fee2e2;
  color: #991b1b;
}

/* --- MODAL --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal.open {
  display: flex;
}
.modal-box {
  background: white;
  width: 500px;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
