html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: 'Segoe UI', sans-serif;
background-color: #f9f9f9;
color: #0d1b2a;
overflow-x: hidden;
}

.a {
text-decoration: none;
color: inherit;
}

.header {
position: fixed;
top: 0;
left: 0;
width: 100vw;
background: linear-gradient(90deg, #0d1b2a, #1565c0);
padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 10001; /* Acima do modal de pesquisa */
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
color: #ffffff;
gap: 20px;
}

.status {
font-size: 14px;
white-space: nowrap;
}

.menu-section {
margin: 120px auto 30px auto;
max-width: 1200px;
padding: 0 20px;
}

.menu-header {
text-align: center;
margin-bottom: 30px;
padding: 25px 20px;
background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
border: 1px solid rgba(21, 101, 192, 0.1);
position: relative;
z-index: 10;
}

.menu-title {
font-size: 32px;
font-weight: 700;
background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin: 0 0 12px 0;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
text-shadow: 0 2px 8px rgba(0,0,0,0.15);
position: relative;
}

.menu-title::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 120%;
height: 120%;
background: radial-gradient(circle, rgba(25, 118, 210, 0.05) 0%, transparent 70%);
border-radius: 50%;
z-index: -1;
}

.menu-subtitle {
font-size: 17px;
color: #555;
margin: 0;
font-weight: 500;
opacity: 0.85;
text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.menu-area {
margin-top: 0;
margin-bottom: 40px;
padding: 35px 25px;
background: linear-gradient(135deg, #f8f9fc 0%, #e3f2fd 50%, #f0f4ff 100%);
border-radius: 20px;
box-shadow: 
  0 10px 40px rgba(0,0,0,0.1),
  0 4px 20px rgba(25, 118, 210, 0.08),
  inset 0 1px 0 rgba(255,255,255,0.5);
border: 2px solid rgba(255,255,255,0.3);
backdrop-filter: blur(15px);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
}

.menu-area::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: 
  radial-gradient(circle at 15% 15%, rgba(25, 118, 210, 0.15) 0%, transparent 40%),
  radial-gradient(circle at 85% 85%, rgba(21, 101, 192, 0.12) 0%, transparent 40%),
  radial-gradient(circle at 50% 50%, rgba(13, 71, 161, 0.05) 0%, transparent 60%);
pointer-events: none;
z-index: 0;
}

.menu-area::after {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, rgba(25, 118, 210, 0.1), transparent, rgba(21, 101, 192, 0.1));
border-radius: 22px;
z-index: -1;
}

.dropdown {
position: relative;
width: 100%;
z-index: 1;
animation: slideInUp 0.8s ease-out;
animation-fill-mode: both;
}

.dropdown:nth-child(1) { animation-delay: 0.1s; }
.dropdown:nth-child(2) { animation-delay: 0.2s; }
.dropdown:nth-child(3) { animation-delay: 0.3s; }
.dropdown:nth-child(4) { animation-delay: 0.4s; }
.dropdown:nth-child(5) { animation-delay: 0.5s; }
.dropdown:nth-child(6) { animation-delay: 0.6s; }
.dropdown:nth-child(7) { animation-delay: 0.7s; }
.dropdown:nth-child(8) { animation-delay: 0.8s; }
.dropdown:nth-child(9) { animation-delay: 0.9s; }
.dropdown:nth-child(10) { animation-delay: 1.0s; }

@keyframes slideInUp {
0% {
opacity: 0;
transform: translateY(40px) scale(0.9);
}
50% {
opacity: 0.6;
transform: translateY(20px) scale(0.95);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.menu-header {
animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.dropdown {
position: relative;
width: 100%;
}

.dropbtn {
background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
color: #fff;
padding: 16px 20px;
border: none;
border-radius: 14px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.3px;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
width: 100%;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
box-shadow: 
  0 4px 15px rgba(25, 118, 210, 0.25),
  0 2px 8px rgba(0, 0, 0, 0.1),
  inset 0 1px 0 rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
min-height: 56px;
max-height: 56px;
line-height: 1.2;
justify-content: flex-start;
flex-shrink: 0;
}

.dropbtn[title]:hover::after {
content: attr(title);
position: absolute;
bottom: -35px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.9);
color: white;
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
white-space: nowrap;
z-index: 1000;
pointer-events: none;
animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropbtn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.6s ease;
}

.dropbtn:hover::before {
left: 100%;
}

.dropbtn:hover {
background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #0a3b8a 100%);
transform: translateY(-3px) scale(1.02);
box-shadow: 
  0 8px 30px rgba(25, 118, 210, 0.4),
  0 4px 15px rgba(0, 0, 0, 0.15),
  inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dropbtn:active {
transform: translateY(-1px) scale(0.98);
transition-duration: 0.1s;
}

.dropbtn:focus {
outline: none;
box-shadow: 
  0 8px 30px rgba(25, 118, 210, 0.4),
  0 0 0 3px rgba(25, 118, 210, 0.3);
}

.dropdown-content {
display: none;
position: absolute;
top: calc(100% + 10px);
left: 50%;
transform: translateX(-50%);
background-color: #ffffff;
color: #0d1b2a;
min-width: 360px;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
z-index: 100;
overflow: hidden;
}

.dropdown-content.show {
display: block;
}

.dropdown-content a {
display: flex;
align-items: center;
padding: 12px;
text-decoration: none;
color: #0d1b2a;
border-bottom: 1px solid #eee;
transition: background 0.3s;
}

.dropdown-content a:hover {
background-color: #e3f2fd;
}

.dropdown-content img {
width: 48px;
height: 48px;
margin-right: 12px;
border-radius: 8px;
object-fit: cover;
display: block;
margin-left: auto;
margin-right: auto;
}

.dropdown-content .link-icon img {
width: 40px;
height: 40px;
border-radius: 6px;
object-fit: contain;
display: block;
margin: 0 auto;
}

.link-icon {
width: 48px;
height: 48px;
margin-right: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
border-radius: 8px;
border: 1px solid #90caf9;
flex-shrink: 0;
overflow: hidden;
}

.link-icon img {
width: 40px;
height: 40px;
object-fit: contain;
border-radius: 4px;
}

.info {
display: flex;
flex-direction: column;
}

.info .click-counter {
    font-size: 10px;
    color: #1565c0;
    font-weight: 600;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 4px 8px;
    border-radius: 10px;
    display: block;
    margin: 0 auto 4px auto;
    border: 1px solid #bbdefb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 290px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}.info .title {
font-weight: bold;
font-size: 15px;
color: #0d1b2a;
}

.info .desc {
font-size: 12px;
color: #888;
opacity: 0.8;
font-style: italic;
margin-top: 2px;
}

.panel {
width: 90%;
max-width: 700px;
background-color: #ffffff;
margin: 60px auto;
padding: 30px;
border-radius: 12px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
color: #0d1b2a;
}

/* ========== ESTILOS DO LOGIN - TEMA CONSISTENTE COM INDEX.PHP ========== */
.login-page html,
.login-page {
  font-family: 'Segoe UI', sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  width: 100vw !important;
  overflow: hidden !important;
}

.login-page,
.login-page * {
  box-sizing: border-box;
}

.login-page body {
  background: linear-gradient(90deg, #0d1b2a, #1565c0) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  width: 100vw !important;
  height: 100vh !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

.login-page body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(21, 101, 192, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(13, 27, 42, 0.1) 0%, transparent 50%);
}

.login-container {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  box-sizing: border-box;
}

.login-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 0;
}

.login-header {
  background: linear-gradient(90deg, #0d1b2a, #1565c0);
  color: #ffffff;
  text-align: center;
  padding: 40px 30px 30px 30px;
}

.login-logo {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.login-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  margin: 0 auto;
  width: 60%;
}

.login-content {
  padding: 40px 30px 30px 30px;
}

.login-form {
  margin-bottom: 0;
}

.login-alert {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
  transition: all 0.3s ease;
}

.alert-icon {
  font-size: 18px;
}

.alert-text {
  font-size: 14px;
  font-weight: 500;
}

.login-field {
  margin-bottom: 25px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0d1b2a;
}

.field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.field-wrapper:focus-within {
  border-color: #1565c0;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.field-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #0d1b2a;
  outline: none;
  font-family: inherit;
}

.field-input::placeholder {
  color: #adb5bd;
}

.toggle-password {
  background: none;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 16px;
  color: #6c757d;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #1565c0;
}

.login-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(90deg, #0d1b2a, #1565c0);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.3);
  font-family: inherit;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  background: #f8f9fc;
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.footer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.status-indicator {
  font-size: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.status-text {
  font-size: 14px;
  color: #28a745;
  font-weight: 500;
}

.footer-text {
  margin: 0;
  color: #6c757d;
  font-size: 12px;
  font-weight: 400;
}

/* Responsividade */
@media (max-width: 480px) {
  .login-container {
    padding: 16px;
  }
  
  .login-header {
    padding: 30px 20px 20px 20px;
  }
  
  .login-logo {
    font-size: 24px;
  }
  
  .login-subtitle {
    font-size: 14px;
  }
  
  .login-content {
    padding: 30px 20px 20px 20px;
  }
  
  .field-input {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .toggle-password {
    padding: 14px 16px;
  }
  
  .login-btn {
    padding: 15px 20px;
    font-size: 15px;
  }
  
  .login-footer {
    padding: 16px 20px;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 20%, 40%, 60%, 80% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
}

/* ========== ESTILOS PARA INDEX.PHP ========== */

/* Header Styles */
.header-link {
  text-decoration: none;
  color: inherit;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-info {
  text-align: right;
}

.header-info div {
  font-size: 14px;
}

/* Botões do Header */
.btn-reset {
  background-color: #ff5252;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-admin {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

/* Modal Styles */
#modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  backdrop-filter: blur(2px);
}

#modal-precos {
  display: none;
  position: fixed;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  width: 75vw;
  max-width: 650px;
  max-height: 80vh;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 8px 32px rgba(0,0,0,0.1);
  z-index: 999;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.modal-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #1565c0, #0d47a1, #1976d2);
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 4px 20px rgba(13,71,161,0.2);
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  z-index: 1;
  position: relative;
}

.modal-close-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 1;
  position: relative;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-content {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(80vh - 90px);
  overflow-x: hidden;
  background: linear-gradient(to bottom, #ffffff, #fafbfc);
}

/* Custom scrollbar */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1565c0, #1976d2);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
}

/* Tabela de Preços */
.tabela-titulo {
  color: #0d47a1;
  background: linear-gradient(135deg, #e3f2fd, #f3f9ff);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  border-left: 5px solid #1565c0;
  box-shadow: 0 2px 8px rgba(21,101,192,0.1);
  position: relative;
}

.tabela-titulo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  border-radius: 12px;
  pointer-events: none;
}

.tabela-precos {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.tabela-precos thead {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef, #f1f3f4);
}

.tabela-precos th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabela-precos th:first-child {
  width: 80px;
}

.tabela-precos th:nth-child(2) {
  width: 70%;
}

.tabela-precos th:last-child {
  width: 100px;
  text-align: right;
}

.tabela-precos tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f1f3f4;
}

.tabela-precos tr:nth-child(even) {
  background: linear-gradient(135deg, #f8f9fa, #fbfcfd);
}

.tabela-precos tr:hover {
  background: linear-gradient(135deg, #e3f2fd, #f0f7ff);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(21,101,192,0.1);
}

.tabela-precos td {
  padding: 16px;
  vertical-align: middle;
  font-size: 14px;
}

.tabela-precos td:first-child {
  width: 80px;
  font-weight: 500;
}

.tabela-precos td:nth-child(2) {
  color: #495057;
}

.tabela-precos td:last-child {
  width: 100px;
  text-align: right;
  font-weight: 600;
  color: #1565c0;
}

/* Busca Google */
.google-search-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.google-search-form {
  display: flex;
  gap: 10px;
}

.google-search-input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 500px;
  font-size: 14px;
}

.google-search-btn {
  padding: 10px 16px;
  background-color: #1565c0;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Busca de Links */
.search-container {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
  position: relative;
  z-index: 10000; /* Sempre no topo */
}

.search-box {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-box.active {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3);
  border-color: #1565c0;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
}

.search-input::placeholder {
  color: #888;
}

.clear-search-btn {
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  transition: color 0.2s;
}

.clear-search-btn:hover {
  color: #f44336;
}

/* Modal de Pesquisa */
.modal-overlay-search {
  display: none;
  position: fixed;
  top: 80px; /* Deixa espaço para o header com a pesquisa */
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay-search.show {
  opacity: 1;
}

.search-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  width: 90%;
  max-width: 700px;
  max-height: 80%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-modal.show {
  opacity: 1;
}

.search-modal-header {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  padding: 20px 25px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.search-modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.search-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.search-modal-content {
  padding: 0;
  max-height: 500px;
  overflow-y: auto;
}

.search-modal-results {
  padding: 0;
}

/* Responsividade do Modal de Pesquisa */
@media (max-width: 768px) {
  .modal-overlay-search {
    top: 70px; /* Header menor em mobile */
    height: calc(100% - 70px);
  }
  
  .search-modal {
    width: 95%;
    max-height: 85%;
    border-radius: 12px;
  }
  
  .search-modal-header {
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
  }
  
  .search-modal-header h3 {
    font-size: 16px;
  }
  
  .search-modal-close-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .search-result-item {
    padding: 16px 20px;
    gap: 12px;
  }
  
  .search-result-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .search-result-title {
    font-size: 15px;
  }
  
  .search-result-desc {
    font-size: 13px;
  }
  
  .no-results-icon {
    font-size: 36px;
  }
  
  .no-results-title {
    font-size: 18px;
  }
  
  .search-no-results {
    padding: 40px 20px;
  }
}

.search-result-item {
  padding: 20px 25px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.search-result-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-result-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-weight: 600;
  color: #1565c0;
  margin-bottom: 6px;
  font-size: 16px;
}

.search-result-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.4;
}

.search-result-category {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Estilo para mensagem quando não há resultados */
.search-no-results {
  text-align: center;
  padding: 60px 40px;
  color: #666;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-results-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.no-results-subtitle {
  font-size: 16px;
  margin-bottom: 12px;
  color: #555;
}

.no-results-suggestion {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

/* Modal de Categoria */
.modal-overlay-category {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay-category.show {
  opacity: 1;
}

.category-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  width: 90%;
  max-width: 800px;
  max-height: 85%;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.category-modal-header {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  padding: 20px 25px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.category-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.category-modal-content {
  padding: 0;
  max-height: 500px;
  overflow-y: auto;
}

.category-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: #f0f0f0;
  margin: 0;
}

.category-link-item {
  background: white;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 15px;
  border: none;
  text-decoration: none;
  color: inherit;
}

.category-link-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-link-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #f8f9fa;
  border-radius: 10px;
  flex-shrink: 0;
}

.category-link-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-link-info {
  flex: 1;
}

.category-link-title {
  font-weight: 600;
  color: #1565c0;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.3;
}

.category-link-desc {
  font-size: 10px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.category-link-counter {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsividade do Modal de Categoria */
@media (max-width: 768px) {
  .category-modal {
    width: 95%;
    max-height: 90%;
    border-radius: 12px;
  }
  
  .category-modal-header {
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
  }
  
  .category-modal-header h3 {
    font-size: 18px;
  }
  
  .category-modal-close-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .category-links-grid {
    grid-template-columns: 1fr;
  }
  
  .category-link-item {
    padding: 16px;
    gap: 12px;
  }
  
  .category-link-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .category-link-icon img {
    width: 28px;
    height: 28px;
  }
  
  .category-link-title {
    font-size: 15px;
  }
  
  .category-link-desc {
    font-size: 11px;
  }
}

/* Panel Styles */
.panel-atendimento {
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  background: #ffffff;
  padding: 20px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.panel-title {
  margin-top: 0;
  color: #0d1b2a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-subtitle {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#total-clicks {
  font-weight: bold;
  color: #1565c0;
}

#top-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Contadores e Rodapé */
.contador-visitas {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 100px;
  padding: 20px;
  color: #444;
  font-size: 14px;
}

.contador-visitas a {
  margin-left: 10px;
  font-size: 12px;
  color: #1565c0;
  text-decoration: underline;
}

.espacamento {
  text-align: center;
  margin-top: 50px;
  color: #444;
  font-size: 14px;
}

.padding-top {
  padding-top: 30px;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #0d1b2a, #1565c0);
  color: white;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.footer-line {
  margin-bottom: 5px;
}

.footer-version {
  font-size: 12px;
  opacity: 0.8;
}

.version-info {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
}

.version-info small {
  font-weight: normal;
  opacity: 0.8;
  font-size: 10px;
}

.logout-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff5252;
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

@media (max-width: 1024px) {
.menu-area {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
padding: 25px 20px;
}

.dropbtn {
padding: 15px 18px;
font-size: 12px;
gap: 7px;
}
}

@media (max-width: 768px) {
.menu-area {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 14px;
padding: 20px 15px;
}

.dropbtn {
padding: 14px 16px;
font-size: 11px;
gap: 6px;
}
}

@media (max-width: 600px) {
.menu-section {
padding: 0 15px;
margin: 100px auto 20px auto;
}

.menu-header {
padding: 20px 15px;
margin-bottom: 20px;
}

.menu-title {
font-size: 24px;
}

.menu-subtitle {
font-size: 14px;
}

.menu-area {
grid-template-columns: 1fr;
gap: 16px;
padding: 25px 20px;
margin-top: 0;
}

.dropbtn {
width: 100%;
padding: 16px 18px;
font-size: 12px;
gap: 6px;
white-space: nowrap;
text-overflow: ellipsis;
min-height: 52px;
max-height: 52px;
}

.dropdown-content {
left: 0;
transform: none;
}

.google-search-input {
  width: 300px;
}

/* Estilos responsivos para pesquisa de links */
.header {
  flex-direction: column;
  gap: 10px;
  padding: 10px 15px;
}

.search-container {
  max-width: 100%;
  margin: 0;
  order: 2;
}

.header > span {
  order: 1;
}

.header-right {
  order: 3;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.header-info {
  font-size: 11px;
}

.btn-reset, .btn-admin {
  font-size: 11px;
  padding: 4px 8px;
}

.status {
  font-size: 11px;
}

.search-input {
  font-size: 16px; /* Evita zoom no iOS */
  padding: 8px 12px;
}

.search-result-item {
  padding: 12px 15px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.search-result-icon {
  align-self: flex-start;
}

.search-result-title {
  font-size: 14px;
  line-height: 1.3;
}

.search-result-desc {
  font-size: 12px;
}

.search-result-category {
  font-size: 11px;
}
}

/* Media queries para o modal de preços */
@media (max-width: 768px) {
  #modal-precos {
    width: 90%;
    max-height: 85vh;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px;
  }
  
  .modal-content {
    padding: 15px;
    max-height: calc(85vh - 80px);
  }
  
  .tabela-precos {
    font-size: 14px;
  }
  
  .tabela-precos th,
  .tabela-precos td {
    padding: 8px 6px;
  }
}

@media (max-width: 480px) {
  #modal-precos {
    width: 95%;
    max-height: 88vh;
    border-radius: 12px;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .modal-header {
    padding: 12px 15px;
    border-radius: 12px 12px 0 0;
  }
  
  .modal-header h3 {
    font-size: 16px;
  }
  
  .modal-content {
    padding: 12px;
    max-height: calc(88vh - 70px);
  }
  
  .tabela-titulo {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .tabela-precos {
    font-size: 13px;
  }
  
  .tabela-precos th,
  .tabela-precos td {
    padding: 6px 4px;
  }
}