/* ============================================================
   ADMIN PANEL CSS — PHP 7.3 / compatível todos browsers
   ============================================================ */

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

:root {
  --cor-primaria:    #3B1F8C;
  --roxo:            #3B1F8C;
  --roxo-escuro:     #2A1566;
  --roxo-light:      #5433B0;
  --amarelo:         #F5A800;
  --amarelo-dark:    #D48F00;
  --azul:            #00AEEF;
  --azul-dark:       #0077B6;
  --verde:           #22C55E;
  --vermelho:        #EF4444;
  --laranja:         #F97316;
  --branco:          #FFFFFF;
  --fundo:           #F1F3F9;
  --fundo-admin:     #F1F3F9;
  --sidebar-w:       260px;
  --header-h:        64px;
  --texto:           #1C1C1E;
  --texto-soft:      #64748B;
  --borda:           #E2E8F0;
  --sombra:          0 1px 8px rgba(0,0,0,.08);
  --sombra-md:       0 4px 24px rgba(0,0,0,.12);
  --radius:          10px;
  --radius-sm:       7px;
  --trans:           .25s ease;
  --font:            'Inter', sans-serif;
}

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--fundo-admin);
  color: var(--texto);
  line-height: 1.6;
  min-height: 100vh;
}

a   { text-decoration: none; color: inherit; transition: var(--trans); }
img { max-width: 100%; display: block; }
ul  { list-style: none; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5433B0; }

/* ══════════════════════════════════════════════════════════
   LAYOUT GERAL
═══════════════════════════════════════════════════════════ */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  margin-left: var(--sidebar-w);
  flex-direction: column;
  transition: margin-left var(--trans);
}

.admin-main {
  flex: 1;
  padding: 28px;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--roxo-escuro);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 300;
  transition: transform var(--trans);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.sidebar-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.sidebar-logo span {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
}

.btn-fechar-sidebar {
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0 16px;
  overflow-y: auto;
}

.sidebar-secao {
  padding: 16px 16px 6px;
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: rgba(255,255,255,.65);
  font-size: .855rem;
  font-weight: 500;
  transition: var(--trans);
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
  padding-left: 20px;
}

.sidebar-link.ativo {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  border-left-color: var(--amarelo);
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

.sidebar-footer a {
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
}

.sidebar-footer a:hover { color: #fff; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 299;
}

/* ══════════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════════ */
.admin-topbar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--sombra);
  gap: 16px;
}

.btn-toggle-sidebar {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--texto-soft);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--trans);
  display: none;
}

.btn-toggle-sidebar:hover {
  background: var(--fundo);
  color: var(--roxo);
}

.topbar-titulo {
  font-size: .95rem;
  font-weight: 700;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.topbar-acoes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--fundo);
  border: 1.5px solid var(--borda);
  font-size: .82rem;
  font-weight: 600;
  color: var(--texto-soft);
  transition: var(--trans);
  cursor: pointer;
  text-decoration: none;
}

.btn-topbar:hover {
  background: var(--roxo);
  color: #fff;
  border-color: var(--roxo);
}

/* ── Sino de notificações ───────────────────────────────── */
.notif-wrapper {
  position: relative;
}

.btn-sino {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--fundo);
  border: 1.5px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-soft);
  font-size: .95rem;
  cursor: pointer;
  transition: var(--trans);
}

.btn-sino:hover {
  background: var(--roxo);
  color: #fff;
  border-color: var(--roxo);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--vermelho);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  box-shadow: var(--sombra-md);
  z-index: 500;
  overflow: hidden;
}

.notif-drop-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
}

.notif-drop-header strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--texto);
}

.btn-notif-txt {
  background: none;
  border: none;
  font-size: .75rem;
  color: var(--roxo);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--trans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-notif-txt:hover { background: rgba(59,31,140,.08); }

.notif-lista {
  max-height: 320px;
  overflow-y: auto;
}

.notif-loading {
  display: flex;
  justify-content: center;
  padding: 24px;
}

.notif-drop-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--borda);
  text-align: center;
}

.notif-drop-footer a {
  font-size: .8rem;
  color: var(--roxo);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Menu do usuário ────────────────────────────────────── */
.user-menu { position: relative; }

.btn-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: var(--trans);
}

.btn-user:hover { background: var(--fundo); }

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--roxo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  text-align: left;
  line-height: 1.3;
}

.user-nome {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--texto);
}

.user-nivel {
  display: block;
  font-size: .7rem;
  color: var(--texto-soft);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  box-shadow: var(--sombra-md);
  z-index: 500;
  overflow: hidden;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .855rem;
  color: var(--texto);
  transition: var(--trans);
  font-weight: 500;
}

.user-dropdown-item:hover {
  background: var(--fundo);
  color: var(--roxo);
}

.user-dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--texto-soft);
}

/* ══════════════════════════════════════════════════════════
   FORMULÁRIOS
═══════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--borda);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: var(--font);
  color: var(--texto);
  background: #fff;
  transition: var(--trans);
  outline: none;
}

.form-control:focus {
  border-color: var(--roxo);
  box-shadow: 0 0 0 3px rgba(59,31,140,.1);
}

.form-control.is-invalid {
  border-color: var(--vermelho);
}

.invalid-feedback {
  font-size: .78rem;
  color: var(--vermelho);
  margin-top: 4px;
  display: block;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.input-group {
  position: relative;
}

.input-group .form-control { padding-right: 44px; }

.input-group .input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-soft);
  cursor: pointer;
  font-size: .95rem;
  transition: var(--trans);
}

.input-group .input-icon:hover { color: var(--roxo); }

/* ══════════════════════════════════════════════════════════
   BOTÕES
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .862rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--trans);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--roxo);
  color: #fff;
  border-color: var(--roxo);
}
.btn-primary:hover {
  background: var(--roxo-escuro);
  border-color: var(--roxo-escuro);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,31,140,.3);
}

.btn-secondary {
  background: var(--fundo);
  color: var(--texto);
  border-color: var(--borda);
}
.btn-secondary:hover { background: var(--borda); }

.btn-success {
  background: var(--verde);
  color: #fff;
  border-color: var(--verde);
}
.btn-success:hover { background: #16a34a; border-color: #16a34a; }

.btn-danger {
  background: var(--vermelho);
  color: #fff;
  border-color: var(--vermelho);
}
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }

.btn-warning {
  background: var(--amarelo);
  color: var(--roxo-escuro);
  border-color: var(--amarelo);
}
.btn-warning:hover { background: var(--amarelo-dark); }

.btn-outline-primary {
  background: transparent;
  color: var(--roxo);
  border-color: var(--roxo);
}
.btn-outline-primary:hover {
  background: var(--roxo);
  color: #fff;
}

.btn-sm  { padding: 5px 12px; font-size: .78rem; }
.btn-lg  { padding: 12px 28px; font-size: .975rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════════════════════════
   ALERTAS
═══════════════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  border: 1px solid var(--borda);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-header h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--roxo-escuro);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.card-header h3 i { color: var(--roxo-light); }

.card-body  { padding: 20px; }

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--borda);
  background: var(--fundo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ══════════════════════════════════════════════════════════
   TABELAS
═══════════════════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .855rem;
}

.table th {
  background: var(--fundo);
  padding: 10px 14px;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  color: var(--texto-soft);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  border-bottom: 1.5px solid var(--borda);
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--borda);
  color: var(--texto);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #FAFBFF; }

.table .thumb {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.table .actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-roxo    { background: rgba(59,31,140,.1); color: var(--roxo); }
.badge-cinza   { background: #f3f4f6; color: #374151; }

/* ══════════════════════════════════════════════════════════
   TOGGLE SWITCH
═══════════════════════════════════════════════════════════ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #CBD5E1;
  border-radius: 24px;
  transition: var(--trans);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--trans);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--verde);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* ══════════════════════════════════════════════════════════
   UPLOAD AREA
═══════════════════════════════════════════════════════════ */
.upload-area {
  border: 2px dashed var(--borda);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
  background: var(--fundo);
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--roxo);
  background: rgba(59,31,140,.04);
}

.upload-area i {
  font-size: 2.5rem;
  color: var(--roxo-light);
  margin-bottom: 10px;
  display: block;
}

.upload-area p { font-size: .875rem; color: var(--texto-soft); }
.upload-area small { font-size: .75rem; color: #94A3B8; }

.upload-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  display: none;
}

/* ══════════════════════════════════════════════════════════
   PAGINAÇÃO
═══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--borda);
  color: var(--texto-soft);
  background: #fff;
  transition: var(--trans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.pagination a:hover { border-color: var(--roxo); color: var(--roxo); }

.pagination .active {
  background: var(--roxo);
  color: #fff;
  border-color: var(--roxo);
}

/* ══════════════════════════════════════════════════════════
   BUSCA E FILTROS
═══════════════════════════════════════════════════════════ */
.filters-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.search-input {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-input input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--borda);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: var(--font);
  outline: none;
  transition: var(--trans);
  background: #fff;
  color: var(--texto);
}

.search-input input:focus { border-color: var(--roxo); }

.search-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-soft);
  font-size: .85rem;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   SPINNER / LOADING
═══════════════════════════════════════════════════════════ */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--borda);
  border-top-color: var(--roxo);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2A1566 0%, #3B1F8C 50%, #0077B6 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -200px;
  right: -150px;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(245,168,0,.08);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
}

.login-box {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo img {
  height: 56px;
  margin: 0 auto 12px;
}

.login-logo h2 {
  font-size: 1.1rem;
  color: #2A1566;
  font-weight: 700;
}

.login-logo p {
  font-size: .8rem;
  color: var(--texto-soft);
}

/* ══════════════════════════════════════════════════════════
   UTILIDADES
═══════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--texto-soft); }
.text-success { color: var(--verde); }
.text-danger  { color: var(--vermelho); }
.text-warning { color: var(--amarelo); }
.text-primary { color: var(--roxo); }

.d-flex         { display: flex; }
.align-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.w-100 { width: 100%; }

/* Esconde em mobile */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--sombra-md);
  }
  .admin-sidebar.aberta {
    transform: translateX(0);
  }
  .admin-wrapper {
    margin-left: 0;
  }
  .btn-toggle-sidebar {
    display: flex;
  }
  .btn-fechar-sidebar {
    display: block;
  }
  .sidebar-overlay.aberto {
    display: block;
  }
}

@media (max-width: 768px) {
  .admin-main   { padding: 16px; }
  .card-body    { padding: 16px; }
  .card-header  { padding: 12px 16px; }
  .notif-dropdown { width: 300px; right: -60px; }
  .user-dropdown  { right: 0; }
}

@media (max-width: 480px) {
  .login-box { padding: 32px 24px; }
  .topbar-acoes { gap: 6px; }
  .notif-dropdown { width: 280px; right: -80px; }
}
