/* Admin Stylesheet - Slate Charcoal & Lens Blue Theme (Light / White Mode) */
:root {
  --bg-dark: #f3f4f6;          /* Light gray background */
  --bg-light: #ffffff;         /* Pure white background for containers/cards */
  --bg-card: #ffffff;          /* White cards */
  --bg-input: #f9fafb;         /* Soft off-white for input fields */
  --accent-color: #2563eb;     /* Modern, high-contrast Lens Blue */
  --accent-color-hover: #1d4ed8; /* Darker blue on hover */
  --text-dark: #1f2937;        /* Main dark text */
  --text-light: #ffffff;       /* Light text on dark buttons */
  --text-muted: #4b5563;       /* Muted gray text */
  --white: #ffffff;            /* Pure white constant */
  --border-color: rgba(0, 0, 0, 0.08); /* Subtle dark border */
  --danger-color: #ef4444;     /* Standard red */
  --danger-hover: #dc2626;     /* Darker red */
  --success-color: #10b981;    /* Standard green */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark Mode Theme & Component Overrides */
body.dark-mode {
  --bg-dark: #0f172a;            /* Deep slate blue/gray background */
  --bg-light: #1e293b;           /* Slate card / sidebar background */
  --bg-card: #1e293b;
  --bg-input: #334155;           /* Lighter slate for fields */
  --accent-color: #60a5fa;       /* Vibrant neon-blue accent */
  --accent-color-hover: #93c5fd; /* Soft hover blue */
  --text-dark: #f8fafc;          /* High contrast text */
  --text-muted: #94a3b8;         /* Gray muted text */
  --border-color: rgba(255, 255, 255, 0.08); /* White border tint */
}

body.dark-mode .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .sidebar-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .sidebar-tab-btn.active {
  background: rgba(96, 165, 250, 0.08);
}

body.dark-mode .album-admin-footer {
  background: rgba(255, 255, 255, 0.01);
}

body.dark-mode .btn-icon-edit {
  background: rgba(96, 165, 250, 0.08);
}

body.dark-mode .btn-gallery-star {
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
}

body.dark-mode .btn-gallery-star.active {
  background: var(--accent-color);
  color: #ffffff;
}

body.dark-mode .loading-overlay {
  background: rgba(15, 23, 42, 0.85);
}

body.dark-mode .spinner {
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-color);
}

/* Reset Geral */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text-dark);
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.88rem; /* REDUZIDO: de 1rem para 0.88rem */
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, textarea, select {
  font-family: inherit;
}

/* REDUZIDO: Botões um pouco menores */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.25rem; /* REDUZIDO: de 0.8rem 1.8rem */
  font-weight: 700;
  font-size: 0.85rem;      /* REDUZIDO: de 0.9rem */
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--accent-color-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}

.btn-danger {
  background: var(--danger-color);
  color: var(--text-light);
}

.btn-danger:hover {
  background: var(--danger-hover);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Layout Estrutural (Sidebar + Conteúdo Principal) */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Menu Lateral (Sidebar) */
.admin-sidebar {
  width: 240px; /* Largura padrão */
  background: var(--bg-light);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 100;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Sidebar Dobrada (Collapsed) */
.admin-sidebar.collapsed {
  width: 65px;
}

.admin-sidebar.collapsed #workspace-selector-container {
  display: none !important;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  height: 4rem;
}

.sidebar-header .admin-logo {
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.logo-full {
  display: inline;
}

.logo-collapsed {
  display: none;
}

.admin-sidebar.collapsed .logo-full {
  display: none;
}

.admin-sidebar.collapsed .logo-collapsed {
  display: inline;
}

.admin-sidebar.collapsed .btn-toggle-sidebar {
  display: none;
}

.admin-sidebar.collapsed .sidebar-header {
  justify-content: center;
}

.admin-sidebar.collapsed .admin-logo {
  cursor: pointer;
}

.btn-toggle-sidebar {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-toggle-sidebar:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.04);
}

.admin-sidebar.collapsed .btn-toggle-sidebar i {
  transform: rotate(180deg); /* Gira a setinha para a direita */
}

/* Navegação Vertical na Sidebar */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  flex-grow: 1;
}

.sidebar-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-tab-btn i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-tab-btn span {
  transition: opacity 0.2s ease;
}

.admin-sidebar.collapsed .sidebar-tab-btn span {
  opacity: 0;
  width: 0;
  pointer-events: none;
}

.sidebar-tab-btn:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.03);
}

.sidebar-tab-btn.active {
  color: var(--accent-color);
  background: rgba(37, 99, 235, 0.06);
}

/* Rodapé da Sidebar */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

.sidebar-footer .admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-sidebar.collapsed .sidebar-footer .admin-user-info {
  justify-content: center;
}

.admin-sidebar.collapsed .sidebar-footer .admin-user-info span {
  display: none;
}

.btn-logout-sidebar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.admin-sidebar.collapsed .btn-logout-sidebar span {
  display: none;
}

.sidebar-brand {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.4rem;
}

.admin-sidebar.collapsed .sidebar-brand {
  display: none;
}

/* Área de Conteúdo do Admin */
.admin-main-content {
  flex-grow: 1;
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Layout das Telas (Views) */
.admin-view {
  display: none;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem; /* REDUZIDO: de 2rem 1.5rem */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.admin-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Login View (Centralizada - Fora do layout de sidebar) */
#login-view {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#login-view.active {
  display: flex;
}

.login-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem; /* REDUZIDO: de 3rem 2.5rem */
  border-radius: 8px;
  width: 100%;
  max-width: 420px;     /* REDUZIDO: de 480px */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.login-logo {
  font-size: 1.4rem;    /* REDUZIDO: de 1.6rem */
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.login-subtitle {
  font-size: 0.85rem;   /* REDUZIDO: de 0.9rem */
  color: var(--text-muted);
  margin-bottom: 2rem;  /* REDUZIDO: de 2.5rem */
}

/* Formulários */
.form-group {
  margin-bottom: 1.1rem; /* REDUZIDO: de 1.5rem */
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.75rem;   /* REDUZIDO: de 0.8rem */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  margin-bottom: 0.4rem; /* REDUZIDO: de 0.5rem */
  font-weight: 600;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.6rem 0.85rem; /* REDUZIDO: de 0.75rem 1rem */
  color: var(--text-dark);
  font-size: 0.88rem;      /* REDUZIDO: de 0.95rem */
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;        /* REDUZIDO: de 100px */
}

/* Ajuda sobre Tokens */
.token-help {
  margin-top: 1.25rem;
  font-size: 0.75rem;   /* REDUZIDO: de 0.78rem */
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

.token-help a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Dashboard View */
.dashboard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem; /* REDUZIDO: de 2rem */
}

.dashboard-actions h2 {
  font-size: 1.35rem;   /* REDUZIDO: de 1.5rem */
  color: var(--text-dark);
  font-weight: 600;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* REDUZIDO: de 320px */
  gap: 1.25rem; /* REDUZIDO: de 1.5rem */
}

.album-admin-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.album-admin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.album-admin-cover {
  height: 140px; /* REDUZIDO: de 160px */
  background-size: cover;
  background-position: center;
  position: relative;
}

.album-admin-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 14, 17, 0.8) 0%, rgba(13, 14, 17, 0.1) 100%);
}

.album-admin-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--accent-color);
  color: var(--text-light);
  font-size: 0.6rem; /* REDUZIDO: de 0.65rem */
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  z-index: 2;
}

.album-admin-info {
  padding: 1.25rem; /* REDUZIDO: de 1.5rem */
}

.album-admin-title {
  font-size: 1.1rem; /* REDUZIDO: de 1.25rem */
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.album-admin-desc {
  font-size: 0.82rem; /* REDUZIDO: de 0.88rem */
  color: var(--text-muted);
  line-height: 1.5;
  height: 3.7rem;    /* REDUZIDO: de 4.5rem */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 1.25rem;
}

.album-admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem; /* REDUZIDO: de 1rem 1.5rem */
  background: rgba(0, 0, 0, 0.01);
}

.album-photo-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.album-card-btns {
  display: flex;
  gap: 0.4rem;
}

/* REDUZIDO: Botões de ícone menores */
.btn-icon-edit {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-color);
  width: 1.85rem;  /* REDUZIDO: de 2.2rem */
  height: 1.85rem; /* REDUZIDO: de 2.2rem */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-icon-edit:hover {
  background: var(--accent-color);
  color: var(--text-light);
}

.btn-icon-delete {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger-color);
  width: 1.85rem;  /* REDUZIDO: de 2.2rem */
  height: 1.85rem; /* REDUZIDO: de 2.2rem */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-icon-delete:hover {
  background: var(--danger-color);
  color: var(--text-light);
}

/* Edit View Layout */
.edit-layout {
  display: grid;
  grid-template-columns: 1fr 300px; /* REDUZIDO: de 320px */
  gap: 1.5rem; /* REDUZIDO: de 2rem */
}

@media (max-width: 980px) {
  .edit-layout {
    grid-template-columns: 1fr;
  }
}

.edit-main {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem; /* REDUZIDO: de 2.5rem */
}

.edit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-box {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem; /* REDUZIDO: de 1.5rem */
}

.sidebar-box h3 {
  font-size: 0.82rem; /* REDUZIDO: de 0.9rem */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.85rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

/* Capa Preview */
.cover-preview-container {
  width: 100%;
  height: 140px; /* REDUZIDO: de 160px */
  border-radius: 4px;
  background-color: var(--bg-input);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow: hidden;
}

/* Drag and Drop Zone */
.upload-drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 6px;
  padding: 2rem; /* REDUZIDO: de 2.5rem */
  text-align: center;
  background: var(--bg-input);
  transition: var(--transition-smooth);
  cursor: pointer;
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.upload-drop-zone:hover, .upload-drop-zone.dragover {
  border-color: var(--accent-color);
  background: rgba(37, 99, 235, 0.02);
}

.upload-icon {
  font-size: 1.85rem; /* REDUZIDO: de 2.2rem */
  color: var(--accent-color);
}

.upload-text {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.upload-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Gallery Admin Grid */
.admin-gallery-title {
  font-size: 1rem;      /* REDUZIDO: de 1.1rem */
  color: var(--text-dark);
  margin-top: 1.75rem;  /* REDUZIDO: de 2.5rem */
  margin-bottom: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* REDUZIDO: de 130px */
  gap: 0.85rem; /* REDUZIDO: de 1rem */
  margin-top: 0.85rem;
}

.admin-gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  transition: var(--transition-smooth);
}

.admin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-actions {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 5;
}

.admin-gallery-item:hover .gallery-item-actions {
  opacity: 1;
}

.btn-gallery-action {
  width: 1.5rem;   /* REDUZIDO: de 1.6rem */
  height: 1.5rem;  /* REDUZIDO: de 1.6rem */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.btn-gallery-delete {
  background: var(--danger-color);
  color: var(--text-light);
}

.btn-gallery-delete:hover {
  background: var(--danger-hover);
}

.btn-gallery-star {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

.btn-gallery-star.active {
  background: var(--accent-color);
  color: var(--text-light);
}

/* Loading Overlay & Spinners */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-dark);
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 3rem; /* REDUZIDO: de 3.5rem */
  height: 3rem;
  border: 4px solid rgba(0, 0, 0, 0.05);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.loading-text {
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.95rem; /* REDUZIDO: de 1rem */
}

.loading-progress {
  font-size: 0.8rem; /* REDUZIDO: de 0.85rem */
  color: var(--text-muted);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alertas & Toasts */
.toast-container {
  position: fixed;
  bottom: 1.5rem; /* REDUZIDO: de 2rem */
  right: 1.5rem;  /* REDUZIDO: de 2rem */
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  padding: 0.85rem 1.25rem; /* REDUZIDO: de 1rem 1.5rem */
  color: var(--text-dark);
  font-size: 0.85rem;        /* REDUZIDO: de 0.9rem */
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast.toast-success {
  border-left-color: var(--success-color);
}

.toast.toast-danger {
  border-left-color: var(--danger-color);
}

/* Edit Sections in Site Config */
.config-section {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem; /* REDUZIDO: de 2rem */
  margin-bottom: 1.25rem; /* REDUZIDO: de 1.5rem */
}

.config-section h3 {
  font-size: 0.92rem; /* REDUZIDO: de 1rem */
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CSS Grid layout for Services Configuration */
.config-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* REDUZIDO: de 280px */
  gap: 1.25rem; /* REDUZIDO: de 1.5rem */
}

.service-config-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.25rem; /* REDUZIDO: de 1.5rem */
}

/* Gerenciador de Grupos/Categorias */
.category-manager-container {
  margin-top: 1rem;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.category-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.category-chip .btn-remove-cat {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.category-chip .btn-remove-cat:hover {
  color: var(--danger-color);
}

.category-add-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
}

.category-add-form input {
  flex-grow: 1;
}

/* Ocultar barra superior horizontal que não é mais usada */
.admin-tabs, .admin-header {
  display: none !important;
}

/* Delivery Admin Styles */
.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delivery-badge-active {
  background: #10b981;
  color: #0d0e11;
  border: 1px solid #10b981;
}

.delivery-badge-expired {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid #ef4444;
}

.delivery-badge-lock {
  background: #f59e0b;
  color: #0d0e11;
  border: 1px solid #f59e0b;
}

.delivery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.delivery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.delivery-card-cover {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #1f2937;
  position: relative;
}

.delivery-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.delivery-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.delivery-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.delivery-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.delivery-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* Reordenação por Drag & Drop e Setas Manuais */
.admin-gallery-item {
  cursor: grab;
}

.admin-gallery-item:active {
  cursor: grabbing;
}

.admin-gallery-item.dragging {
  opacity: 0.45;
  transform: scale(0.95);
  border: 2px dashed var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Rodapé com setas para ordenamento manual no hover */
.gallery-item-move-actions {
  position: absolute;
  bottom: 0.3rem;
  left: 0.3rem;
  right: 0.3rem;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 5;
}

.admin-gallery-item:hover .gallery-item-move-actions {
  opacity: 1;
}

.btn-gallery-move {
  background: rgba(20, 20, 20, 0.85);
  color: var(--text-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-gallery-move:hover {
  background: var(--accent-color) !important;
  color: #0d0e11 !important;
  border-color: var(--accent-color);
}

/* Face Recognition Selection Button Style */
.btn-gallery-face {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

.btn-gallery-face.active {
  background: #10b981 !important;
  color: var(--text-light) !important;
  border-color: #10b981 !important;
}

body.dark-mode .btn-gallery-face {
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
}

body.dark-mode .btn-gallery-face.active {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}


