/* index.css - P.S.O REFORMAS - Soluções Criativas */

/* Importar fontes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #C5A059;
  --primary-dark: #0A0A0B;
  --primary-light: #DFBA73;
  --accent-color: #C5A059;
  --accent-hover: #DFBA73;
  --accent-light: rgba(197, 160, 89, 0.12);
  
  --bg-color: #0F0F10;
  --card-bg: rgba(22, 22, 24, 0.78);
  --text-main: #F3F5F7;
  --text-muted: #A1A8B3;
  --border-color: rgba(197, 160, 89, 0.18);
  
  --success-color: #2ECC71;
  --danger-color: #E74C3C;
  --warning-color: #F39C12;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.75);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --pdf-blue: #0F3A5F;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0A0A0B;
  border-left: 1px solid rgba(197, 160, 89, 0.08);
}

::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.25);
  border-radius: 5px;
  border: 2px solid #0A0A0B;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(197, 160, 89, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(rgba(10, 10, 11, 0.32), rgba(10, 10, 11, 0.42)), url('./psofd.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (min-width: 769px) {
  body::before {
    background-size: contain;
  }
}

/* App Container Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation Header */
.app-header {
  background-color: rgba(10, 10, 11, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(197, 160, 89, 0.18);
  box-shadow: var(--shadow-md);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  background-color: white;
  padding: 2px;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.brand-subname {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Sync status badge */
.status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.status-dot.online {
  background-color: #2ECC71;
  box-shadow: 0 0 10px #2ECC71, 0 0 20px rgba(46, 204, 113, 0.4);
}

.status-dot.offline {
  background-color: #F1C40F;
  box-shadow: 0 0 10px #F1C40F, 0 0 20px rgba(241, 196, 15, 0.4);
}

#status-text {
  display: none;
  font-size: 0.75rem;
  margin-left: 0.4rem;
  color: #fff;
  white-space: nowrap;
}

/* Main Layout Tabs */
.tab-navigation {
  background-color: rgba(22, 22, 24, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 80px;
  z-index: 99;
}

.tab-btn {
  flex: 1;
  padding: 1rem 0.5rem;
  background: none;
  border: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.tab-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--accent-color);
}

.tab-btn.active svg {
  stroke: var(--primary-color);
}

/* Main Content Area */
.app-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.view-section.active {
  display: block;
}

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

/* Page Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

@media (max-width: 600px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
  }
  
  .section-header .section-title {
    font-size: 1.4rem;
  }
  
  .section-header > .btn {
    width: 100%;
  }
  
  .section-header > div {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  
  .section-header > div > .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
    text-align: center;
  }
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

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

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(197, 160, 89, 0.1);
  border-color: var(--primary-color);
  color: #fff;
}

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

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

.btn-icon-only {
  padding: 0.5rem;
  border-radius: 50%;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Cards & Lists */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.15);
  border-color: var(--primary-light);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
}

.card.synced::before {
  background-color: var(--success-color);
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-field {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
}

.card-label {
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--primary-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: rgba(26, 26, 28, 0.65);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: rgba(32, 32, 35, 0.85);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.25);
}

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

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Modais Customizados (Centralizados na Tela) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#modal-cliente-overlay {
  z-index: 1100;
}

#modal-alert-overlay {
  z-index: 20000 !important;
}

#modal-confirm-overlay {
  z-index: 20001 !important;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-container {
  background-color: rgba(22, 22, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(197, 160, 89, 0.28);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 1.5rem;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.modal-close svg {
  stroke: var(--text-muted);
  width: 24px;
  height: 24px;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

/* Modais Especiais (Ex: Notificação de salvamento / Confirmação) */
.modal-alert {
  max-width: 400px;
  text-align: center;
  padding: 2rem 1.5rem;
}

.modal-alert .alert-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.modal-alert .alert-icon.success {
  background-color: rgba(46, 204, 113, 0.15);
  stroke: var(--success-color);
}

.modal-alert .alert-icon.danger {
  background-color: rgba(231, 76, 60, 0.15);
  stroke: var(--danger-color);
}

.modal-alert .alert-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.modal-alert .alert-message {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Dynamic rows (Services/Materials) in budget creation */
.dynamic-row-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.dynamic-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.dynamic-row input {
  flex: 1;
}

/* Custom Image Upload & Capture Area */
.photo-uploader {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  background-color: var(--bg-color);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.photo-uploader:hover {
  border-color: var(--primary-light);
  background-color: var(--accent-light);
}

.photo-uploader-icon {
  margin: 0 auto 0.5rem;
  stroke: var(--primary-color);
}

.photo-uploader-text {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.photo-uploader-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.photo-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.photo-delete-btn:hover {
  background-color: rgb(231, 76, 60);
  transform: scale(1.1);
}

/* Custom value display */
.total-display-bar {
  background-color: rgba(22, 22, 24, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.total-display-value {
  font-size: 1.4rem;
  color: var(--primary-light);
}

/* Dashboard backup view styling */
.backup-section-box {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .backup-grid {
    grid-template-columns: 1fr;
  }
}

.backup-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.backup-card-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* Input de arquivo invisivel */
.hidden-file-input {
  display: none;
}


/* ========================================== */
/* ESTILO DE IMPRESSÃO (@media print)        */
/* ========================================== */

/* Elemento de Layout do PDF escondido na tela */
#print-layout {
  display: none;
  background-color: white;
  width: 100%;
}

@media print {
  /* Oculta toda a aplicação */
  body, html {
    background-color: white !important;
    color: black !important;
    font-family: 'Inter', sans-serif !important;
  }
  
  .app-container, .modal-overlay {
    display: none !important;
  }
  
  /* Mostra apenas a área de impressão */
  #print-layout {
    display: block !important;
  }
  
  /* Configuração da Página A4 sem margens padrão para permitir cabeçalho sangrado (edge-to-edge) */
  @page {
    size: A4;
    margin: 0;
  }

  /* Evita quebras órfãs ou viúvas de parágrafos */
  h1, h2, h3, h4, table, tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  /* Estilização Geral do PDF */
  .pdf-page {
    position: relative;
    width: 100%;
    max-width: 210mm;
    height: 100vh;
    page-break-after: always;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: white;
    overflow: hidden;
  }
  
  .pdf-page:last-child {
    page-break-after: avoid;
  }

  /* Conteúdo da Página A4 (onde as margens são aplicadas) */
  .pdf-content {
    padding: 0 15mm;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
  }
  
  /* Cabeçalho do PDF - Fundo Azul Escuro de ponta a ponta */
  .pdf-header {
    background-color: var(--pdf-blue) !important;
    color: white !important;
    height: 25mm;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15mm;
    margin-bottom: 5mm;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .pdf-logo-box {
    background-color: white !important;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18mm;
    width: 18mm;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .pdf-logo-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
  
  .pdf-company-info {
    text-align: right;
    color: white !important;
    line-height: 1.4;
  }
  
  .pdf-company-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13pt;
    font-weight: 800;
    color: white !important;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
  }

  .pdf-company-subtitle {
    font-size: 8.5pt;
    color: #e2e8f0 !important;
  }

  .pdf-company-budget {
    font-size: 9pt;
    font-weight: 700;
    color: white !important;
    margin-top: 3px;
  }
  
  /* Títulos de Seções - Fundo Azul Escuro */
  .pdf-section-title {
    background-color: var(--pdf-blue) !important;
    color: white !important;
    font-family: 'Outfit', sans-serif;
    font-size: 9pt;
    font-weight: 700;
    padding: 4px 10px;
    margin-top: 5mm;
    margin-bottom: 4px; /* Espaço para destacar o arredondamento */
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  /* Tabela de Dados do Cliente */
  .pdf-client-grid {
    display: grid;
    grid-template-columns: 110px 1fr;
    row-gap: 4px;
    column-gap: 15px;
    font-size: 8.5pt;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Arredondado nas 4 pontas */
    margin-bottom: 5mm;
    background-color: white;
  }
  
  .pdf-client-label {
    font-weight: 700;
    color: var(--pdf-blue) !important;
  }
  
  .pdf-client-value {
    color: #1a202c;
  }
  
  /* Tabelas */
  .pdf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5mm;
    font-size: 8pt;
  }
  
  .pdf-table th {
    background-color: var(--pdf-blue) !important;
    color: white !important;
    font-weight: 700;
    text-align: left;
    padding: 4px 10px;
    font-size: 8.5pt;
    border: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .pdf-table td {
    padding: 4px 10px;
    border-bottom: 1px solid #E2E8F0;
    color: #2d3748;
  }
  
  .pdf-table tr:last-child td {
    border-bottom: none; /* Remove borda dupla no final da tabela */
  }
  
  .pdf-table tr:nth-child(even) {
    background-color: #F8FAFC !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .pdf-table th.col-num {
    width: 40px;
    text-align: center;
  }
  
  .pdf-table td.col-num {
    text-align: center;
    font-weight: 700;
    color: var(--pdf-blue) !important;
  }
  
  .pdf-table th.col-desc {
    width: 75%;
  }
  
  /* Seção de Observações */
  .pdf-obs-box {
    font-size: 8pt;
    color: #2d3748;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Arredondado */
    line-height: 1.4;
    background-color: white;
  }
  
  /* Grid de Imagens - Página 2 */
  .pdf-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4mm;
    margin-bottom: 8mm;
  }
  
  .pdf-photo-item {
    aspect-ratio: 4/3;
    border: 1px solid #CBD5E1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8FAFC;
  }
  
  .pdf-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Valor Total do Orçamento */
  .pdf-total-bar {
    background-color: var(--pdf-blue) !important;
    color: white !important;
    padding: 6px 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 9.5pt;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5mm;
    margin-bottom: 20mm;
    text-transform: uppercase;
    border-radius: 4px; /* Arredondado */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .pdf-total-value {
    font-size: 12pt;
    color: white !important;
  }
  
  /* Assinaturas */
  .pdf-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: auto; /* Empurra para o rodapé antes do footer final */
    margin-bottom: 25mm;
    padding: 0 20px;
  }
  
  .pdf-sig-line {
    width: 42%;
    text-align: center;
    font-size: 8.5pt;
    color: #4a5568;
    border-top: 1px solid #718096;
    padding-top: 6px;
  }
  
  /* Rodapé Fixo no final de cada página */
  .pdf-footer {
    position: absolute;
    bottom: 8mm;
    left: 15mm;
    right: 15mm;
    border-top: 1px solid #E2E8F0;
    padding-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7.5pt;
    color: #718096;
    box-sizing: border-box;
  }
}

/* Custom Scrollbars (Personalização da barra de rolagem lateral) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Estilos para botões de atalho rápido de comunicação (Contatos) */
.client-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  color: white !important;
  font-family: var(--font-title);
  gap: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.btn-contact svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
}

.btn-contact.phone {
  background-color: #3498db;
}
.btn-contact.phone:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

.btn-contact.whatsapp {
  background-color: #2ecc71;
}
.btn-contact.whatsapp:hover {
  background-color: #27ae60;
  transform: translateY(-1px);
}

.btn-contact.email {
  background-color: #e74c3c;
}
.btn-contact.email:hover {
  background-color: #c0392b;
  transform: translateY(-1px);
}

/* Área de Pagamentos e Comprovantes */
.payments-container {
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
}

.payment-history-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.payments-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 0.8rem;
  padding-right: 0.2rem;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  background-color: var(--bg-color);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.payment-receipt-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s;
  background-color: white;
}

.payment-receipt-thumb:hover {
  transform: scale(1.1);
}

.payment-no-receipt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Custom Overrides para z-indices de overlays de modais aninhados */
#modal-iniciar-obra-overlay {
  z-index: 1050;
}

#modal-pagamento-overlay {
  z-index: 1150;
}

#modal-comprovante-overlay {
  z-index: 1300;
}

/* ==========================================================================
   MÓDULO FINANCEIRO - DASHBOARD, TABELAS E COMPONENTES
   ========================================================================== */

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

@media (max-width: 992px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.15);
  border-color: var(--primary-light);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.metric-icon {
  color: var(--text-muted);
  opacity: 0.6;
  transition: all 0.2s ease;
}

.metric-card:hover .metric-icon {
  color: var(--primary-color);
  opacity: 0.95;
}

.metric-title {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  font-family: var(--font-title);
  letter-spacing: -0.5px;
}

.metric-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
  line-height: 1.3;
}

.text-success {
  color: var(--success-color) !important;
}
.text-danger {
  color: var(--danger-color) !important;
}
.text-warning {
  color: #D35400 !important;
}

/* Sub-views and tabs */
.subview-section {
  display: none;
}
.subview-section.active {
  display: block;
}
.subtab-btn {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.subtab-btn:hover {
  color: var(--primary-light);
  background-color: rgba(197, 160, 89, 0.12);
}
.subtab-btn.active {
  color: var(--primary-light);
  background-color: rgba(197, 160, 89, 0.2);
  border-bottom: none;
}

/* Extrato (Transactions Table) */
.extrato-table th, .extrato-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.extrato-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
.transaction-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.transaction-badge.entrada {
  background-color: rgba(46, 204, 113, 0.15);
  color: var(--success-color);
}
.transaction-badge.saida {
  background-color: rgba(231, 76, 60, 0.15);
  color: var(--danger-color);
}
.transaction-badge.investimento {
  background-color: rgba(197, 160, 89, 0.15);
  color: var(--primary-color);
}
.thumb-comprovante {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.thumb-comprovante:hover {
  transform: scale(1.1);
}

/* Foto do Investimento Card */
.investimento-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

/* ========================================================== */
/* MENU HAMBURGUER & NAVEGAÇÃO MOBILE                         */
/* ========================================================== */

.btn-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-hamburger:hover, .btn-hamburger:active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-content {
  width: 85%;
  max-width: 320px;
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.mobile-nav-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.mobile-nav-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mobile-nav-link {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--primary-color);
  color: var(--primary-dark);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
}

/* Responsividade Mobile - Esconde abas superiores e ativa menu hambúrguer */
@media (max-width: 768px) {
  .tab-navigation {
    display: none !important;
  }
  .btn-hamburger {
    display: flex;
  }
}

/* ==========================================================================
   ESTILOS DA TELA DE LOGIN E BOTOES ADICIONAIS (P.S.O REFORMAS)
   ========================================================================= */

/* Botão Sair no Header */
.btn-logout {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-logout:hover {
  background: var(--danger-color);
  border-color: var(--danger-color);
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

@media (max-width: 576px) {
  .btn-logout-text {
    display: none;
  }
  .btn-logout {
    padding: 0.4rem;
  }
}

/* Container da Tela de Login */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(rgba(10, 10, 11, 0.65), rgba(10, 10, 11, 0.85)), url('../pso_owner_hero.jpg') 72% 10% / cover no-repeat;
  overflow: hidden;
  z-index: 9999;
  padding: 1.5rem;
}
 
/* Ocultar Formas Geométricas padrão para mostrar a imagem do proprietário */
.login-bg-shapes {
  display: none;
}
 
/* Card de Login */
.login-card {
  position: relative;
  z-index: 2;
  background: rgba(20, 20, 22, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(197, 160, 89, 0.28);
}
 
/* Logo no Card */
.login-logo-container {
  width: 130px;
  height: 130px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 2.2rem;
  padding: 10px;
  border: 2px solid var(--accent-color);
}
 
.login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
 
/* Form de Login */
#form-login {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
 
.login-input-group {
  position: relative;
  width: 100%;
}
 
.login-input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  opacity: 0.95;
  pointer-events: none;
}
 
.login-input-group input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  font-size: 1rem;
  color: white;
  background-color: rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}
 
.login-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
 
.login-input-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.2);
}
 
.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-color);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
 
.password-toggle-btn:hover {
  opacity: 1;
}
 
.password-toggle-btn svg.hidden {
  display: none;
}
 
.btn-login {
  width: 100%;
  padding: 0.9rem;
  background-color: var(--accent-color);
  color: var(--primary-dark);
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(242, 169, 0, 0.25);
}
 
.btn-login:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242, 169, 0, 0.4);
}

/* Divisor "ou" */
.login-divider {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid #E2E8F0;
}

.login-divider span {
  padding: 0 10px;
  font-weight: 500;
}

/* Botão de Orçamento/Cadastro */
.btn-signup-budget {
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-signup-budget:hover {
  background-color: rgba(15, 58, 95, 0.05);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Rodapé do Login */
.login-footer {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ajustes Responsivos adicionais para tela de Login */
@media (max-width: 768px) {
  .login-container {
    background-position: 78% 10%; /* Centraliza o rapaz no fundo em telas menores */
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
  .login-logo-container {
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
  }
}

/* ========================================== */
/* NOTIFICATION BELL & BADGE STYLING          */
/* ========================================== */
.btn-notifications {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  transition: var(--transition);
}

.btn-notifications:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1.5px solid var(--primary-color);
  min-width: 16px;
  text-align: center;
  line-height: 1;
}

/* Card layout for requests */
.pending-request-card {
  background-color: rgba(26, 26, 28, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pending-request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
}

.pending-request-body {
  font-size: 0.85rem;
  color: var(--text-main);
}

.pending-request-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}


/* Solicitações de Orçamentos do Site */
.site-requests-container {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.request-card {
  background-color: rgba(26, 26, 28, 0.55);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  transition: var(--transition);
}

.request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.1);
  border-color: var(--primary-light);
}

.request-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.request-card-header h4 {
  font-family: var(--font-title);
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
}

.request-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.request-card-body {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.request-card-body p {
  margin-bottom: 0.4rem;
}

.contact-links a {
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-links .link-wa {
  color: #25D366;
}

.contact-links .link-wa:hover {
  color: #1EBE55;
  text-decoration: underline;
}

.contact-links .link-email {
  color: var(--primary-light);
}

.contact-links .link-email:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.req-services-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.req-badge {
  font-size: 0.75rem;
  background-color: var(--accent-light);
  color: var(--accent-hover);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(242, 169, 0, 0.2);
}

.req-photos-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.req-photo-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.req-photo-thumb:hover {
  transform: scale(1.08);
  border-color: var(--primary-light);
}

.req-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 169, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(242, 169, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 169, 0, 0); }
}

/* --- ESTILOS MOBILE: NAVEGAÇÃO INFERIOR, TRAVAMENTO DE TELA E PULL TO REFRESH --- */

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* Garante travamento de tela e sem "dança lateral" nos contêineres principais */
.app-container, .view-section, main, header, footer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Evitar transbordamento em tabelas do sistema */
.view-section table {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Barra de Navegação Mobile Inferior */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(22, 22, 24, 0.96);
        backdrop-filter: blur(15px);
        border-top: 1.5px solid rgba(197, 160, 89, 0.22);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    }
    
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
    }
    
    .bottom-tab-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        background: none;
        border: none;
        font-size: 0.65rem;
        font-weight: 600;
        gap: 4px;
        cursor: pointer;
        width: 20%;
        height: 100%;
        transition: all 0.2s ease;
        padding: 4px 0;
    }
    
    .bottom-tab-btn svg {
        width: 22px;
        height: 22px;
        transition: transform 0.2s ease;
    }
    
    .bottom-tab-btn:active svg {
        transform: scale(0.9);
    }
    
    .bottom-tab-btn.active {
        color: var(--accent-hover) !important;
    }
    
    /* Ocultar botão de menu de cima (opcional, mantido apenas o bottom menu) */
    .btn-hamburger {
        display: none !important;
    }
}

/* Pull to Refresh */
.pull-to-refresh {
    position: fixed;
    top: -70px;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2000;
    color: var(--accent-hover);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-title);
    pointer-events: none;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    opacity: 0;
    background: rgba(10, 10, 11, 0.9);
    border-bottom: 1.5px solid rgba(197, 160, 89, 0.18);
    backdrop-filter: blur(10px);
}

.pull-to-refresh .spinner {
    width: 22px;
    height: 22px;
    animation: ptr-rotate 2s linear infinite;
    display: none;
}

.pull-to-refresh.refreshing .spinner {
    display: block;
}

.pull-to-refresh .spinner .path {
    stroke: var(--accent-hover);
    stroke-linecap: round;
    animation: ptr-dash 1.5s ease-in-out infinite;
}

@keyframes ptr-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes ptr-dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}
