/**
 * CATEQUIZA+ | Estilos do Painel Administrativo
 * Interface Limpa, Segura, Funcional e Responsiva com Drag & Drop do Altar
 */

:root {
  --admin-bg: #F1F5F9;
  --admin-sidebar-bg: #0D1B2A;
  --admin-card-bg: #FFFFFF;
  --admin-text-dark: #1E293B;
  --admin-text-light: #F8F9FA;
  --admin-gold: #D4AF37;
  --admin-gold-hover: #B5952F;
  --admin-border: #E2E8F0;
  --admin-primary: #1E3A8A;
  --admin-success: #16A34A;
  --admin-danger: #DC2626;
  --admin-warning: #D97706;
  --font-title: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s ease;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

/* Layout Geral: Sidebar + Main Content */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Barra Superior Mobile do Admin */
.admin-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 1.2rem;
  border-radius: 6px;
}

.btn-admin-menu-toggle {
  background: var(--admin-sidebar-bg);
  color: var(--admin-gold);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

/* ==========================================================================
   SIDEBAR DO ADMIN
   ========================================================================== */
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar-bg);
  color: var(--admin-text-light);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  border-right: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 100;
  transition: var(--transition);
  flex-shrink: 0;
  overflow: hidden; /* Garante que nada transborde para fora do fundo escuro */
}

.sidebar-header {
  flex-shrink: 0;
  padding: 1.4rem 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
}

.sidebar-brand-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--admin-gold);
  letter-spacing: 0.08em;
}

.sidebar-menu {
  list-style: none;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  overflow-y: auto; /* Permite rolagem limpa e suave caso a tela seja pequena */
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.35) rgba(0, 0, 0, 0.2);
}

.sidebar-menu::-webkit-scrollbar {
  width: 5px;
}
.sidebar-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: var(--admin-gold);
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.85rem;
  color: #CBD5E1;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  transition: var(--transition);
}

.sidebar-menu-item a:hover, .sidebar-menu-item.active a {
  background: rgba(212, 175, 55, 0.12);
  color: var(--admin-gold);
}

.sidebar-menu-item.active a {
  border-left: 3px solid var(--admin-gold);
  font-weight: 600;
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3); /* Fundo contrastante escuro e permanente */
}

.sidebar-user-info {
  font-size: 0.82rem;
  color: #94A3B8;
}

.sidebar-user-name {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
}

.sidebar-logout-btn {
  color: #EF4444;
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.sidebar-logout-btn:hover {
  color: #FFFFFF;
  background: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (MAIN)
   ========================================================================== */
.admin-main {
  flex-grow: 1;
  padding: 2.2rem;
  overflow-y: auto;
  max-width: 100%;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--admin-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-page-title {
  font-size: 1.8rem;
  color: var(--admin-sidebar-bg);
  font-family: var(--font-title);
}

/* Botões do Admin */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-primary {
  background-color: var(--admin-sidebar-bg);
  color: var(--admin-gold);
  border: 1px solid var(--admin-gold);
}

.btn-admin-primary:hover {
  background-color: var(--admin-gold);
  color: var(--admin-sidebar-bg);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-admin-secondary {
  background-color: #E2E8F0;
  color: var(--admin-text-dark);
}

.btn-admin-secondary:hover {
  background-color: #CBD5E1;
}

.btn-admin-danger {
  background-color: var(--admin-danger);
  color: #FFFFFF;
}

.btn-admin-danger:hover {
  background-color: #B91C1C;
}

/* Cards do Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--admin-card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--admin-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-info h3 {
  font-size: 2.2rem;
  color: var(--admin-sidebar-bg);
  font-weight: 700;
  line-height: 1;
}

.stat-info p {
  font-size: 0.88rem;
  color: #64748B;
  margin-top: 6px;
  font-weight: 500;
}

.stat-icon {
  font-size: 2.2rem;
  opacity: 0.35;
}

/* Tabelas Administrativas */
.admin-card {
  background: var(--admin-card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--admin-border);
  overflow: hidden;
  margin-bottom: 2rem;
}

.admin-card-header {
  padding: 1.2rem 1.8rem;
  background-color: #FAFAFA;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-header h3 {
  font-size: 1.15rem;
  color: var(--admin-sidebar-bg);
  font-family: var(--font-title);
}

.admin-card-body {
  padding: 1.8rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #F8FAFC;
  padding: 0.9rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid var(--admin-border);
}

.admin-table td {
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #F8FAFC;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.btn-action-edit, .btn-action-delete {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-action-edit {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.btn-action-edit:hover {
  background-color: #DBEAFE;
}

.btn-action-delete {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.btn-action-delete:hover {
  background-color: #FEE2E2;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--admin-text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background-color: #FFFFFF;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.form-row-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
}

.form-row-1-2-1 {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 768px) {
  .form-row,
  .form-row-2,
  .form-row-3,
  .form-row-2-1,
  .form-row-1-2-1 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

.form-help {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 4px;
}

/* ==========================================================================
   CANVAS DE ARRASTE (DRAG & DROP) DO ALTAR NO ADMIN
   ========================================================================== */
.altar-drag-canvas, .altar-multi-canvas {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  border: 2px solid var(--admin-gold);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.altar-canvas-img, .altar-multi-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Pino Individual de Arraste (Formulário) */
.draggable-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.1s ease;
  touch-action: none;
}

.draggable-pin.dragging {
  cursor: grabbing;
  z-index: 200;
  transform: translate(-50%, -50%) scale(1.2);
}

.draggable-pin .pin-icon {
  font-size: 26px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.draggable-pin .pin-badge {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid var(--admin-gold);
  color: #FFFFFF;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  margin-top: 3px;
  pointer-events: none;
  z-index: 20;
}

/* Pinos e Objetos Múltiplos da Mesa Interativa Geral */
.multi-drag-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.1s ease, filter 0.1s ease;
  touch-action: none;
}

.multi-drag-pin:hover {
  z-index: 150;
  transform: translate(-50%, -50%) scale(1.18);
}

.multi-drag-pin.is-dragging {
  cursor: grabbing;
  z-index: 300;
  transform: translate(-50%, -50%) scale(1.3);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.95));
}

.multi-drag-pin.selected-pin {
  z-index: 250;
  transform: translate(-50%, -50%) scale(1.22);
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 1));
}

/* Estrutura Visual do Objeto no Altar */
.drag-item-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.drag-item-img {
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
  transition: transform 0.15s ease, filter 0.15s ease;
  pointer-events: none;
  user-select: none;
}

.drag-item-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--admin-gold);
  color: #0D1B2A;
  font-weight: 800;
  font-size: 11px;
  border: 1.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.multi-drag-pin:hover .drag-item-img {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 1));
}

.multi-drag-pin.is-dragging .drag-item-img {
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1));
}

.multi-drag-pin.selected-pin .drag-item-img {
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 1));
}

/* Tamanhos Proporcionais Litúrgicos no Painel Admin (Exatamente Iguais à Área Pública) */
.obj-type-crucifixo .drag-item-img {
  width: auto !important;
  height: clamp(75px, 15vw, 140px) !important;
  max-width: 90px !important;
  max-height: none !important;
}

.obj-type-velas .drag-item-img {
  width: auto !important;
  height: clamp(65px, 12vw, 115px) !important;
  max-width: 60px !important;
  max-height: none !important;
}

.obj-type-corporal .drag-item-img {
  width: clamp(100px, 18vw, 190px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-missal .drag-item-img {
  width: clamp(55px, 8.5vw, 85px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-calice .drag-item-img {
  width: auto !important;
  height: clamp(45px, 7vw, 70px) !important;
  max-height: none !important;
}

.obj-type-ciborio .drag-item-img {
  width: auto !important;
  height: clamp(45px, 6.8vw, 68px) !important;
  max-height: none !important;
}

.obj-type-patena .drag-item-img {
  width: clamp(45px, 6.5vw, 65px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-galhetas .drag-item-img {
  width: clamp(48px, 7vw, 72px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-lavabo .drag-item-img {
  width: clamp(48px, 7vw, 72px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-pala .drag-item-img {
  width: clamp(34px, 4.5vw, 46px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-sanguineo .drag-item-img {
  width: clamp(36px, 5vw, 48px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-sineta .drag-item-img {
  width: auto !important;
  height: clamp(36px, 5vw, 50px) !important;
  max-height: none !important;
}

.obj-type-padrao .drag-item-img {
  width: clamp(40px, 5.5vw, 55px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.multi-drag-pin.selected-pin .drag-item-badge,
.multi-drag-pin.is-dragging .drag-item-badge {
  background: #FFFFFF;
  color: #DC2626;
  border-color: var(--admin-gold);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.multi-pin-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 27, 42, 0.95);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--admin-gold);
  white-space: nowrap;
  margin-top: 3px;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
  z-index: 20;
}

/* Distinção para Objetos Apenas Visuais no Admin */
.multi-drag-pin.pin-visual-only .drag-item-badge {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #93C5FD;
}

.multi-drag-pin.pin-visual-only .multi-pin-label {
  border-color: #3B82F6;
  color: #93C5FD;
}

/* Toast Notificação Flutuante */
.admin-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0D1B2A;
  color: #FFFFFF;
  border: 1.5px solid var(--admin-gold);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Alertas */
.alert {
  padding: 1rem 1.4rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-danger {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Tela de Login */
.login-page,
.login-page-body {
  background: var(--admin-sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.login-card {
  background: #FFFFFF;
  border-radius: 10px;
  width: 100%;
  max-width: 440px;
  padding: 2.8rem 2.2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--admin-gold);
  text-align: center;
}

.login-card form {
  text-align: left;
}

.login-card.login-card-wide {
  max-width: 660px;
}

@media (max-width: 560px) {
  .login-card {
    padding: 1.8rem 1.25rem;
    border-radius: 12px;
  }
  .login-page,
  .login-page-body {
    padding: 1rem 0.5rem;
  }
}

.login-logo {
  width: 55px;
  height: 55px;
  margin: 0 auto 1.2rem;
}

.login-title {
  font-family: var(--font-title);
  color: var(--admin-sidebar-bg);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.login-subtitle {
  color: #64748B;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   RESPONSIVIDADE DO ADMIN
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 270px;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }
  .admin-sidebar.open {
    left: 0;
  }
  .admin-mobile-bar {
    display: flex;
  }
  .admin-main {
    padding: 1.2rem 1rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .multi-pin-circle {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .multi-pin-label {
    display: none; /* No mobile oculta o label para não poluir, mantendo o número */
  }
}


/* ==========================================================================
   MELHORIAS DE RESPONSIVIDADE E ACESSO MOBILE (ADMIN)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .admin-sidebar {
    z-index: 100;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .admin-topbar div:last-child {
    width: 100%;
  }
  .admin-topbar .btn-admin {
    width: 100%;
    justify-content: center;
  }
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .admin-card-header .btn-admin {
    width: 100%;
    justify-content: center;
  }
  .admin-form-row {
    grid-template-columns: 1fr !important;
  }
  .table-actions {
    justify-content: flex-start !important;
  }
  .btn-action-edit, .btn-action-delete {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   ESTILOS DE RELATÓRIO DE ACESSOS E ANALYTICS
   ========================================================================== */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--admin-gold) 0%, #B5952F 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.badge-device {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-device-mobile {
  background: rgba(30, 58, 138, 0.1);
  color: #1E3A8A;
}
.badge-device-desktop {
  background: rgba(22, 163, 74, 0.1);
  color: #16A34A;
}
.badge-device-tablet {
  background: rgba(217, 119, 6, 0.1);
  color: #D97706;
}
.period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.period-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--admin-border);
  color: #64748B;
  background: #FFFFFF;
  transition: var(--transition);
}
.period-tab-btn:hover {
  border-color: var(--admin-gold);
  color: var(--admin-sidebar-bg);
}
.period-tab-btn.active {
  background: var(--admin-sidebar-bg);
  color: var(--admin-gold);
  border-color: var(--admin-sidebar-bg);
}
