﻿/* ═══════════════════════════════════════════════════════════════
   PesqueiroSaaS — admin.css
════════════════════════════════════════════════════════════════ */

:root {
  --sidebar-w: 260px;
  --sidebar-collapsed-w: 76px;
  --topbar-h: 64px;
  --color-bg: #F0F2F0;
  --color-surface: #FFFFFF;
  --color-sidebar: #000000;
  --color-sidebar-text: rgba(255,255,255,0.75);
  --color-sidebar-active: rgba(255,255,255,0.08);
  --color-text: #111827;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-primary: #2D6A4F;
  --color-accent: #4980f5;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --radius: 12px;
  --shadow: 0 1px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font); font-size: 14px; }
body { background: var(--color-bg); color: var(--color-text); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
textarea { resize: vertical; }
input, textarea, select { font: inherit; }

.hidden { display: none !important; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN
════════════════════════════════════════════════════════════════ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.15);
  overflow: hidden;
  margin: 20px;
}

.auth-banner {
  flex: 1;
  background: url('/assets/images/home.jpeg') center/cover no-repeat;
  position: relative;
  display: none;
}
@media (min-width: 768px) {
  .auth-banner { display: block; }
}

.auth-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 36, 48, 0.4), rgba(27, 36, 48, 0.9));
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

.auth-banner-content {
  color: #fff;
}
.auth-banner-content .login-logo-img {
  width: 140px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 24px;
}
.auth-banner-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.auth-banner-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.5;
}

.auth-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  position: relative;
}
@media (min-width: 768px) {
  .auth-form-container { padding: 64px; }
}

.auth-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.auth-view.active {
  display: block;
}

.auth-header {
  margin-bottom: 32px;
}
.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.auth-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.btn-auth {
  margin-top: 12px;
  padding: 14px;
  font-size: 1rem;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.auth-switch a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   APP LAYOUT
════════════════════════════════════════════════════════════════ */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--color-sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  transition: transform var(--transition), width var(--transition);
  z-index: 200;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 64px;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}
.sidebar-logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.sidebar-toggle {
  color: rgba(255,255,255,0.5);
  padding: 6px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,0.1); }
.sidebar-toggle svg { width: 18px; height: 18px; }

.site-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 12px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
}
.site-badge-avatar {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-badge-name { font-size: 0.85rem; font-weight: 600; color: #fff; line-height: 1.2; }
.site-badge-slug { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.12); color: #fff; }
.nav-item.active svg { color: var(--color-accent); }
.nav-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 4px; }
@media (min-width: 769px) {
  .sidebar.collapsed {
    width: var(--sidebar-collapsed-w);
    overflow-x: hidden;
  }

  .sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 16px 10px;
  }

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

  .sidebar.collapsed .sidebar-toggle {
    color: rgba(255,255,255,0.8);
  }

  .sidebar.collapsed .site-badge {
    justify-content: center;
    gap: 0;
    padding: 10px;
    margin: 10px 8px;
  }

  .sidebar.collapsed .site-badge-info,
  .sidebar.collapsed .nav-section-title,
  .sidebar.collapsed .nav-item span {
    display: none;
  }

  .sidebar.collapsed .sidebar-nav {
    align-items: center;
    padding: 8px;
  }

  .sidebar.collapsed .nav-item {
    width: 100%;
    justify-content: center;
    gap: 0;
    padding: 11px 0;
  }

  .sidebar.collapsed .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .sidebar.collapsed .nav-divider {
    width: 100%;
  }
}

/* ─── MAIN ───────────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  min-width: 0;
  background: var(--color-bg);
}

.editor-sidebar {
  flex: 0 0 450px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  overflow: hidden;
}
@media (min-width: 1400px) {
  .editor-sidebar { flex: 0 0 520px; }
}
@media (max-width: 1024px) {
  .editor-sidebar { flex: 1; }
}

/* ─── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  z-index: 100;
}
.topbar-menu-btn {
  display: none;
  color: var(--color-text-muted);
  padding: 8px;
  border-radius: 8px;
}
.topbar-menu-btn svg { width: 20px; height: 20px; }
.topbar-title {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  color: var(--color-text);
}
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.publish-toggle { display: flex; align-items: center; gap: 8px; }
.toggle-label { font-size: 0.8rem; font-weight: 500; color: var(--color-text-muted); min-width: 60px; }

.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 24px;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle-track::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-track { background: var(--color-success); }
.toggle input:checked + .toggle-track::before { transform: translateX(20px); }

.btn-save {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-save svg { width: 16px; height: 16px; }
.btn-save:hover { background: #245c43; transform: translateY(-1px); }
.btn-save:active { transform: translateY(0); }

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 9999;
  background: #1F2937;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease;
  max-width: 320px;
}
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PANELS ─────────────────────────────────────────────────── */
.panels {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 64px;
  scroll-behavior: smooth;
}
.panel { display: none; width: 100%; max-width: 100%; }
.panel.active { display: block; }

.panel-header { margin-bottom: 28px; }
.panel-header h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.panel-header p { color: var(--color-text-muted); font-size: 0.9rem; }

/* ─── CARD ───────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.card-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* ─── FORMS ──────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.label-icon { width: 14px; height: 14px; color: var(--color-text-muted); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.field-hint { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 4px; }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.alert-error { background: #FEF2F2; color: var(--color-danger); border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: var(--color-success); border: 1px solid #BBF7D0; }

/* Buttons */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.btn-primary:hover { background: #245c43; }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px dashed var(--color-border);
  border-radius: 8px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
.btn-add svg { width: 16px; height: 16px; }
.btn-add:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(45,106,79,0.04); }

/* ─── UPLOAD ZONE ────────────────────────────────────────────── */
.upload-zone {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
  overflow: hidden;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--color-primary);
  background: rgba(45,106,79,0.03);
}
.upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 24px;
  text-align: center;
  color: var(--color-text-muted);
  pointer-events: none;
}
.upload-zone-inner svg { width: 32px; height: 32px; color: #9CA3AF; }
.upload-zone-inner p { font-size: 0.9rem; font-weight: 500; color: var(--color-text); }
.upload-zone-inner span { font-size: 0.75rem; }
.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.img-preview {
  position: relative;
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}
.img-preview img { width: 100%; max-height: 240px; object-fit: cover; }
.img-remove {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.img-remove:hover { background: var(--color-danger); }

/* ─── COLOR PICKER ───────────────────────────────────────────── */
.color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.color-item { display: flex; flex-direction: column; gap: 8px; }
.color-item label { font-weight: 600; font-size: 0.8rem; color: var(--color-text); }
.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F9FAFB;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color var(--transition);
}
.color-picker-wrap:focus-within { border-color: var(--color-primary); }
.color-picker-wrap input[type="color"] {
  width: 36px; height: 36px;
  border: none; border-radius: 6px;
  cursor: pointer; padding: 0;
  background: none;
}
.color-hex {
  border: none !important;
  background: transparent !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  width: 80px;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.color-hint { font-size: 0.72rem; color: var(--color-text-muted); }

.color-presets { margin-top: 4px; }
.presets-label { font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.presets-list { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.preset:hover { border-color: var(--color-primary); color: var(--color-text); }
.preset span { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ─── LIVE PREVIEW (IFRAME) ──────────────────────────────────── */
.live-preview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .live-preview-container { display: none; }
}
.live-preview-header {
  height: var(--topbar-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}
.preview-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.preview-badge svg { width: 16px; height: 16px; }
.preview-actions {
  display: flex;
  gap: 8px;
}
.preview-actions button {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: transparent;
  transition: all var(--transition);
}
.preview-actions button svg { width: 18px; height: 18px; }
.preview-actions button:hover { background: rgba(0,0,0,0.05); color: var(--color-text); }
.preview-actions button.active { background: #E5E7EB; color: var(--color-primary); }

.live-preview-frame-wrapper {
  flex: 1;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
#live-preview-frame {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--color-border);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#live-preview-frame.mobile-view {
  width: 375px;
  height: 812px;
  border-radius: 36px;
  border: 8px solid #1F2937;
  max-height: 100%;
}
.live-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  z-index: 5;
}
.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ─── LIST EDITOR ────────────────────────────────────────────── */
.list-editor { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F9FAFB;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color var(--transition);
}
.list-item:focus-within { border-color: var(--color-primary); }
.list-item-drag {
  color: #9CA3AF;
  cursor: grab;
  padding: 2px;
  flex-shrink: 0;
}
.list-item-drag svg { width: 16px; height: 16px; }
.list-item input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
  color: var(--color-text);
}
.list-item-del {
  width: 28px; height: 28px;
  border-radius: 6px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.list-item-del:hover { background: #FEE2E2; color: var(--color-danger); }
.list-item-del svg { width: 14px; height: 14px; }

/* Hours & Price specific */
.hours-row, .price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F9FAFB;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
}
.hours-row input, .price-row input {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
  color: var(--color-text);
}
.hours-row .inp-day { flex: 2; }
.hours-row .inp-time { flex: 1; min-width: 70px; }
.price-row .inp-label { flex: 2; }
.price-row .inp-val { flex: 1; min-width: 80px; font-weight: 600; }
.price-row { flex-wrap: wrap; align-items: center; }
.price-row select {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
  color: var(--color-text);
}
.price-row .inp-category { flex: 0 0 110px; font-weight: 600; }
.price-row .inp-label { flex: 1 1 150px; }
.price-row .inp-val { flex: 0 0 110px; }
.price-row .inp-age { flex: 0 0 90px; }
.price-row .inp-val:disabled { color: var(--color-success); opacity: 1; }
.price-row-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.price-row-check input { width: 14px; height: 14px; flex: 0 0 auto; }

/* ─── SERVICE TOGGLES ────────────────────────────────────────── */
.service-toggle-list { display: flex; flex-direction: column; gap: 0; }
.service-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-toggle-item:last-child { border-bottom: none; }
.service-toggle-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.service-toggle-info > svg { width: 20px; height: 20px; color: var(--color-primary); margin-top: 2px; flex-shrink: 0; }
.service-toggle-info strong { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 2px; }
.service-toggle-info p { font-size: 0.8rem; color: var(--color-text-muted); }
.service-detail {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-detail label { font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); }
.service-detail textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}
.service-detail textarea:focus { border-color: var(--color-primary); }

/* ─── GALLERY EDITOR ─────────────────────────────────────────── */
.gallery-editor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-item-edit {
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.gallery-item-edit img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery-item-edit .gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  border: 2px dashed transparent;
  transition: border-color var(--transition);
}
.gallery-placeholder:hover { border-color: var(--color-primary); }
.gallery-placeholder svg { width: 32px; height: 32px; }

.gallery-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  width: 100%;
  height: 75%; /* covers the image part, not the text inputs */
}
.gallery-item-bottom {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-item-bottom input {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.75rem;
  outline: none;
}
.gallery-item-del {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item-del:hover { background: var(--color-danger); }

/* ─── FISH EDITOR ────────────────────────────────────────────── */
.fish-editor { display: flex; flex-direction: column; gap: 12px; }
.fish-item {
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
}
.fish-thumb {
  width: 100px; height: 75px;
  border-radius: 8px;
  background: #F3F4F6;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  border: 2px dashed var(--color-border);
  transition: border-color var(--transition);
}
.fish-thumb:hover { border-color: var(--color-primary); }
.fish-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fish-thumb svg { width: 28px; height: 28px; }
.fish-thumb input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fish-fields { display: flex; flex-direction: column; gap: 8px; }
.fish-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fish-fields input, .fish-fields textarea {
  padding: 8px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.fish-fields input:focus, .fish-fields textarea:focus { border-color: var(--color-primary); }
.fish-item-top { display: flex; justify-content: flex-end; }
.fish-item-del {
  color: #9CA3AF;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  transition: background var(--transition), color var(--transition);
}
.fish-item-del:hover { background: #FEE2E2; color: var(--color-danger); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVO
════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    z-index: 300;
  }
  .sidebar.open { transform: translateX(0); }

  .topbar-menu-btn { display: flex; }
  .panels { padding: 20px 16px 64px; }
  .form-row { grid-template-columns: 1fr; }
  .color-grid { grid-template-columns: 1fr; }
  .fish-item { grid-template-columns: 1fr; }

  .topbar-actions { gap: 8px; }
  .toggle-label { display: none; }

  /* Overlay para fechar sidebar */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 299;
    display: none;
  }
  .sidebar-overlay.show { display: block; }
}

@media (max-width: 480px) {
  .login-card { padding: 32px 24px; }
  .btn-save span { display: none; }
  .gallery-editor { grid-template-columns: 1fr 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   MAPA & QUIOSQUES
════════════════════════════════════════════════════════════════ */

/* ── Fullscreen Map Editor Overlay ──────────────────────────── */
.map-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0f0d;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.map-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(13, 27, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.map-editor-instructions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #10B981;
  font-weight: 500;
  font-size: 0.95rem;
}

.map-editor-instructions i {
  width: 20px;
  height: 20px;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.map-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-editor-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.map-editor-actions button i {
  width: 16px;
  height: 16px;
}

.btn-map-undo {
  background: rgba(255,255,255,0.1);
  color: #FCD34D;
}
.btn-map-undo:hover { background: rgba(255,255,255,0.2); }

.btn-map-clear {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}
.btn-map-clear:hover { background: rgba(239, 68, 68, 0.3); }

.btn-map-confirm {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}
.btn-map-confirm:hover { background: rgba(16, 185, 129, 0.35); }

.btn-map-cancel {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.btn-map-cancel:hover { background: rgba(255,255,255,0.15); }

.map-editor-canvas {
  flex: 1;
  position: relative;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

.map-editor-canvas img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.map-editor-counter {
  text-align: center;
  padding: 10px;
  background: rgba(13, 27, 20, 0.95);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── Kiosk Pin (Editor + Preview) ───────────────────────────── */
.kiosk-pin {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #10B981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3), 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 10;
  animation: pin-drop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pin-drop {
  from { transform: translate(-50%, -50%) scale(0); }
  to { transform: translate(-50%, -50%) scale(1); }
}

.kiosk-pin:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.4), 0 4px 16px rgba(0,0,0,0.5);
}

.kiosk-pin::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.6);
  animation: pin-pulse 2s infinite;
}

@keyframes pin-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── Kiosk List (painel lateral) ────────────────────────────── */
.kiosk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.kiosk-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-bg);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s;
}

.kiosk-list-item:hover {
  border-color: var(--color-primary);
}

.kiosk-list-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10B981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.kiosk-list-info {
  flex: 1;
  min-width: 0;
}

.kiosk-list-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.kiosk-list-coords {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.kiosk-list-del {
  color: var(--color-text-muted);
  transition: color 0.2s;
  flex-shrink: 0;
  padding: 4px;
}

.kiosk-list-del:hover {
  color: var(--color-danger);
}

/* ── Map Preview (thumbnail with pins) ──────────────────────── */
.kiosk-map-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #f0f0f0;
}

.kiosk-map-preview img {
  width: 100%;
  display: block;
}

.kiosk-map-preview .kiosk-pin {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
  animation: none;
}

.kiosk-map-preview .kiosk-pin::after {
  display: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .map-editor-topbar {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .map-editor-actions {
    width: 100%;
    justify-content: space-between;
  }

  .map-editor-actions button {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .map-editor-actions button span {
    display: none;
  }

  .kiosk-pin {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ADMINISTRATIVO (DASHBOARD)
════════════════════════════════════════════════════════════════ */

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dash-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dash-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-icon i {
  width: 28px;
  height: 28px;
}

.dash-info h3 {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dash-info p {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Data Tables */
.table-responsive {
  overflow-x: auto;
  margin: 0 -24px -24px -24px;
  padding: 0 24px 24px 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(240, 242, 240, 0.5);
}

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: rgba(45, 106, 79, 0.03);
}

.data-table td {
  font-size: 0.95rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.reserved { background: rgba(245, 158, 11, 0.15); color: #D97706; }
.status-badge.confirmed { background: rgba(16, 185, 129, 0.15); color: #059669; }
.status-badge.cancelled { background: rgba(239, 68, 68, 0.15); color: #DC2626; }
.status-badge.pending { background: rgba(99, 102, 241, 0.15); color: #4F46E5; }

/* Dashboard Additions */
.chart-container {
  width: 100%;
  height: 350px;
  position: relative;
  border-radius: 8px;
  padding: 10px;
}

.filters-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .filters-row {
    width: 100%;
    margin-top: 10px;
  }
  .filters-row input, .filters-row select {
    flex: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONSTRUTOR VISUAL
════════════════════════════════════════════════════════════════ */
.builder-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.builder-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: grab;
}
.builder-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.builder-item:active {
  cursor: grabbing;
}
.builder-item.sortable-ghost {
  opacity: 0.4;
  background: #f0fdf4;
  border: 1px dashed var(--color-primary);
}
.builder-item.sortable-drag {
  background: var(--color-surface);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: scale(1.02);
}
.builder-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.builder-icon svg {
  width: 20px;
  height: 20px;
}
.builder-content {
  flex: 1;
}
.builder-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}
.builder-content p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.builder-drag-handle {
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.builder-drag-handle:hover {
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════
   DETALHES DA RESERVA (MODAL)
   ════════════════════════════════════════════════════════════════ */
.details-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.details-modal {
  background: var(--color-surface);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  margin: 16px;
}

.details-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(240, 242, 240, 0.5);
}

.details-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.details-modal-close {
  color: var(--color-text-muted);
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
}

.details-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

.details-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  border-bottom: 1.5px solid rgba(45, 106, 79, 0.1);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.details-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.details-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.details-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
}

.details-item p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.details-attendees-list {
  display: grid;
  gap: 10px;
}

.details-attendee-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
}

.details-attendee-name {
  font-weight: 700;
  color: var(--color-text, var(--text-main));
  overflow-wrap: anywhere;
}

.details-attendee-meta {
  margin-top: 4px;
  color: var(--color-text-muted, var(--text-muted));
  font-size: 0.82rem;
  line-height: 1.45;
}

.details-attendee-price {
  font-weight: 800;
  color: var(--color-primary, var(--primary));
  white-space: nowrap;
}
.btn-ver-reserva {
  border: none;
  background: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.btn-ver-reserva:hover {
  background: rgba(73, 128, 245, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   DOMINIOS BADGES & DETAILS
   ════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-error {
  background: #FEE2E2;
  color: #EF4444;
}
.badge-success {
  background: #D1FAE5;
  color: #10B981;
}
.badge-warning {
  background: #FEF3C7;
  color: #D97706;
}

.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Administrativo completo */
.admin-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.admin-dashboard-header .btn-secondary,
#btn-dashboard-refresh,
#btn-dashboard-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.admin-dashboard-toolbar {
  padding: 20px;
}
.admin-dashboard-toolbar.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)),
    var(--color-surface);
  border: 1px solid #DDE6F0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.dashboard-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.period-tab {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text-muted);
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.period-tab:hover,
.period-tab.active {
  background: rgba(73, 128, 245, 0.1);
  border-color: rgba(73, 128, 245, 0.32);
  color: var(--color-accent);
}
.admin-dashboard-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  align-items: end;
}
.filter-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.filter-field:hover {
  border-color: rgba(73, 128, 245, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.filter-field:focus-within {
  border-color: var(--color-accent);
  background: #FBFDFF;
  box-shadow: 0 0 0 3px rgba(73, 128, 245, 0.12), 0 8px 18px rgba(15, 23, 42, 0.06);
}
.filter-field label {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-field:focus-within label {
  color: var(--color-accent);
}
.filter-field .inp {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #F8FAFC;
  color: var(--color-text);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.85);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
.filter-field .inp:hover {
  background: #F1F5F9;
}
.filter-field .inp:focus {
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(73, 128, 245, 0.4);
}
.filter-field .inp::placeholder {
  color: #94A3B8;
}
.filter-wide {
  grid-column: span 2;
}
.filter-actions {
  display: flex;
  align-items: flex-end;
}
.filter-actions .btn-secondary {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
}
.dashboard-filter-summary {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}
.dashboard-cards-expanded {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
button.dash-card {
  width: 100%;
  border: 1px solid var(--color-border);
  color: inherit;
  text-align: left;
}
.dash-clickable {
  cursor: pointer;
}
.dash-clickable:hover {
  border-color: rgba(73, 128, 245, 0.4);
  background: #fbfdff;
}
.dash-icon.primary {
  background: rgba(73, 128, 245, 0.1);
  color: var(--color-accent);
}
.dash-icon.success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.dash-icon.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #D97706;
}
.dash-icon.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}
.dash-delta {
  display: inline-flex;
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--color-text-muted);
}
.dash-delta.positive { color: #059669; }
.dash-delta.negative { color: #DC2626; }
.dash-delta.muted { color: var(--color-text-muted); }
.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 20px;
  margin-bottom: 20px;
}
.dashboard-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.dashboard-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dashboard-card-title strong,
.dashboard-card-title small {
  color: var(--color-text);
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: 0;
}
.chart-large { height: 320px; }
.chart-small { height: 260px; }
.metric-list,
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}
.metric-item div {
  min-width: 0;
  flex: 1;
}
.metric-item strong,
.metric-item small {
  display: block;
}
.metric-item strong {
  color: var(--color-text);
  font-weight: 800;
}
.metric-item small {
  color: var(--color-text-muted);
  margin-top: 2px;
  font-size: 0.78rem;
}
.metric-item b {
  color: #059669;
  white-space: nowrap;
}
.metric-item.compact {
  padding: 10px 12px;
}
.metric-bar {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #E5E7EB;
}
.metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10B981, #4980f5);
}
.insight-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
}
.insight-item i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.insight-item strong,
.insight-item small {
  display: block;
}
.insight-item strong {
  color: var(--color-text);
  font-weight: 800;
}
.insight-item small {
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-top: 2px;
}
.insight-item.success {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.insight-item.success i { color: #059669; }
.insight-item.warning {
  background: #FFFBEB;
  border-color: #FDE68A;
}
.insight-item.warning i { color: #D97706; }
.insight-item.danger {
  background: #FEF2F2;
  border-color: #FECACA;
}
.insight-item.danger i { color: #DC2626; }
.insight-item.muted i { color: var(--color-text-muted); }
.dashboard-empty {
  display: grid;
  place-items: center;
  min-height: 112px;
  color: var(--color-text-muted);
  text-align: center;
  font-size: 0.88rem;
}
.table-heading .compact-input {
  width: min(100%, 280px);
  min-height: 36px;
  padding: 7px 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.status-badge.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.status-badge.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
}

@media (max-width: 1180px) {
  .dashboard-analytics-grid,
  .dashboard-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-dashboard-header {
    flex-direction: column;
  }
  .admin-dashboard-header .btn-secondary,
  #btn-dashboard-refresh {
    width: 100%;
  }
  .filter-wide {
    grid-column: auto;
  }
  .dashboard-period-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .period-tab {
    width: 100%;
  }
  .admin-dashboard-filters,
  .dashboard-cards-expanded {
    grid-template-columns: 1fr;
  }
  .chart-large,
  .chart-small {
    height: 260px;
  }
}
/* Chales */
.chalet-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 20px;
  align-items: start;
}

.chalet-form-card,
.chalet-list-card {
  min-width: 0;
}

.form-grid-2,
.form-grid-4 {
  display: grid;
  gap: 14px;
}
.form-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }

.card-subtitle {
  margin: 22px 0 8px;
  font-weight: 700;
  color: var(--color-text);
}

.chalet-photos-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin: 12px 0;
}

.chalet-photo-item {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  overflow: hidden;
}
.chalet-photo-preview {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: var(--color-text-muted);
  cursor: pointer;
}
.chalet-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chalet-photo-preview input { display: none; }
.chalet-photo-fields { padding: 10px; display: grid; gap: 8px; }
.chalet-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17,24,39,0.75);
  color: #fff;
}

.chalet-list-editors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 16px;
}
.compact-list .list-item {
  padding: 8px;
  gap: 8px;
}
.btn-add.compact {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.chalet-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.chalet-admin-list {
  display: grid;
  gap: 12px;
}
.chalet-admin-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  overflow: hidden;
}
.chalet-admin-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e5e7eb;
}
.chalet-admin-card-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.chalet-admin-card-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.chalet-admin-card-title strong { font-size: 1rem; }
.chalet-admin-card-meta {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chalet-admin-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chalet-status {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16,185,129,0.12);
  color: #047857;
}
.chalet-status.inactive {
  background: rgba(107,114,128,0.14);
  color: #4b5563;
}

@media (max-width: 1180px) {
  .chalet-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .form-grid-2,
  .form-grid-4,
  .chalet-list-editors { grid-template-columns: 1fr; }
  .chalet-form-actions { flex-direction: column; }
  .chalet-form-actions button { width: 100%; justify-content: center; }
}