@media print {
    body * { visibility: hidden; }
    #printArea, #printArea * { visibility: visible; }
    #printArea { position: absolute; left: 0; top: 0; width: 100%; }
    .no-print { display: none !important; }
}

/* Tema Copa do Mundo - Brasil */
.tema-copa {
  --primary-bg: #009739; /* Verde Brasil */
  --primary-text: #FFD700; /* Amarelo ouro */
  --secondary-bg: #FFD700;
  --secondary-text: #009739;
  --accent-color: #002776; /* Azul da bandeira */
  --card-bg: rgba(0, 151, 57, 0.95); /* Verde com transparência */
  --card-text: #FFD700; /* Texto amarelo nos cards */
  --border-color: #FFD700;
}

/* FUNDO PADRÃO */
body {
  background: #fff;            /* fallback */
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../imagens/ali.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;               /* ajuste como quiser */
  pointer-events: none;
  z-index: 0;
}

/* garante que o conteúdo fique acima do overlay */
body > * {
  position: relative;
  z-index: 1;
}

/* TEMA COPA (sobrescreve o padrão) */
body.tema-copa {
  background: linear-gradient(135deg, #009739 0%, #FFD700 50%, #002776 100%);
  background-attachment: fixed;
}

body.tema-copa::before {
  background-image: url("../imagens/copa.png");
  opacity: 0.30;               /* pode ser diferente do padrão */
}

/* Overlay adicional com taças repetidas */
.tema-copa body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" x="50" font-size="30" text-anchor="middle" fill="rgba(255,215,0,0.05)">🏆</text></svg>');
  background-size: 150px 150px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: -1;
}

/* Cards e containers principais */
.tema-copa .bg-white,
.tema-copa .dark\:bg-gray-800,
.tema-copa .bg-gray-50,
.tema-copa .dark\:bg-gray-900 {
  background-color: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  backdrop-filter: blur(5px); /* Efeito de desfoque no fundo */
}

/* Textos principais */
.tema-copa .text-gray-900,
.tema-copa .dark\:text-white,
.tema-copa .text-gray-700,
.tema-copa .dark\:text-gray-300,
.tema-copa .text-gray-600,
.tema-copa .dark\:text-gray-400 {
  color: var(--card-text) !important;
  font-weight: bold !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Sombra para melhor legibilidade */
}

/* Títulos e subtítulos */
.tema-copa h1,
.tema-copa h2,
.tema-copa h3,
.tema-copa h4,
.tema-copa h5,
.tema-copa h6 {
  color: var(--card-text) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Botões especiais */
.tema-copa .bg-emerald-500,
.tema-copa .bg-green-500 {
  background: linear-gradient(45deg, var(--primary-bg), #00B347) !important;
  color: var(--secondary-bg) !important;
  font-weight: bold !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
}

.tema-copa .bg-blue-500 {
  background: var(--accent-color) !important;
  color: var(--secondary-bg) !important;
  box-shadow: 0 4px 15px rgba(0, 39, 118, 0.4) !important;
}

.tema-copa .bg-pink-500 {
  background: linear-gradient(45deg, #FF1493, var(--secondary-bg)) !important;
  color: var(--primary-bg) !important;
  font-weight: bold !important;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4) !important;
}

/* Faturamento do Mês */
.tema-copa .text-red-500 {
  color: #FF6B6B !important;
  font-weight: bold !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.tema-copa .text-green-500 {
  color: var(--secondary-bg) !important;
  font-weight: bold !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Bordas */
.tema-copa .border-gray-200,
.tema-copa .dark\:border-gray-700 {
  border-color: var(--border-color) !important;
}

/* Inputs e selects */
.tema-copa input,
.tema-copa select,
.tema-copa textarea {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--primary-bg) !important;
  border-color: var(--border-color) !important;
  font-weight: 600 !important;
}

.tema-copa input::placeholder,
.tema-copa select::placeholder,
.tema-copa textarea::placeholder {
  color: rgba(0, 151, 57, 0.7) !important;
}

/* Área de pedidos */
.tema-copa .text-gray-500,
.tema-copa .dark\:text-gray-500 {
  color: rgba(255, 215, 0, 0.9) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Efeito especial nos botões */
.tema-copa button {
  box-shadow: 0 4px 8px rgba(0, 151, 57, 0.3) !important;
  transition: all 0.3s ease !important;
}

.tema-copa button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5) !important;
}

/* Botões específicos do tema Copa */
.tema-copa .bg-green-50 {
  background: linear-gradient(45deg, var(--primary-bg), #00B347) !important;
  color: var(--secondary-bg) !important;
}

.tema-copa .bg-rose-50 {
  background: linear-gradient(45deg, #DC2626, #FF6B6B) !important;
  color: white !important;
}

/* Footer */
.tema-copa .text-gray-400 {
  color: rgba(255, 215, 0, 0.8) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Scrollbar personalizada */
.tema-copa ::-webkit-scrollbar {
  width: 10px;
}

.tema-copa ::-webkit-scrollbar-track {
  background: rgba(0, 151, 57, 0.2);
}

.tema-copa ::-webkit-scrollbar-thumb {
  background: var(--secondary-bg);
  border-radius: 5px;
}

.tema-copa ::-webkit-scrollbar-thumb:hover {
  background: #FFB000;
}

/* Animação especial para o tema Copa */
@keyframes brasilPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.tema-copa .btn-tema-copa {
  animation: brasilPulse 2s infinite;
}

.sino-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sino-btn {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background 0.2s;
}
.sino-btn:hover { background: rgba(255,255,255,0.08); }

.sino-icon {
  font-size: 24px;
  transition: transform 0.2s;
}
.sino-btn:hover .sino-icon { transform: rotate(-10deg) scale(1.1); }

/* Animação quando chega notificação nova */
.sino-icon.tocando { animation: sininho 0.6s ease; }
@keyframes sininho {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}

.badge-notif {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #2b2f3a;
}

.dropdown-notif {
  position: absolute;
  top: 50px;
  right: 0;
  width: 330px;
  max-height: 420px;
  overflow-y: auto;
  background: #1f2330;
  border: 1px solid #3a3f4d;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  z-index: 1000;
  text-align: left;
  animation: aparecer 0.18s ease;
}
@keyframes aparecer {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: bold;
  color: #fff;
  border-bottom: 1px solid #3a3f4d;
  position: sticky;
  top: 0;
  background: #1f2330;
}
.marcar-todas {
  font-size: 12px;
  font-weight: normal;
  color: #4ea1ff;
  cursor: pointer;
}
.marcar-todas:hover { text-decoration: underline; }

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #2b2f3a;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.notif-item:hover { background: #2b2f3a; }
.notif-item.nao-lida { background: rgba(229,57,53,0.08); }
.notif-item.nao-lida::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
}

.notif-titulo { font-weight: bold; color: #fff; font-size: 14px; }
.notif-msg { color: #b0b4c0; font-size: 13px; margin-top: 4px; line-height: 1.4; white-space: pre-line;}
.notif-data { color: #6b7280; font-size: 11px; margin-top: 6px; }

.dropdown-lista .vazio {
  padding: 24px;
  text-align: center;
  color: #6b7280;
}

/* Scrollbar bonita */
.dropdown-notif::-webkit-scrollbar { width: 6px; }
.dropdown-notif::-webkit-scrollbar-thumb { background: #3a3f4d; border-radius: 3px; }

.notif-msg strong {
    font-weight: 700;
    color: #1f2937;
}
.notif-msg em {
    font-style: italic;
}
/* === Modal de exclusão de grupo === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  background: #1e293b;
  color: #fff;
  border-radius: 1.5rem;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-box p { font-size: 0.875rem; color: #cbd5e1; }

.modal-box label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  display: block;
  margin-bottom: 6px;
}

.modal-box select {
  background: #0f172a;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 0.75rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 12px;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.modal-actions button:active { transform: scale(0.97); }
.modal-actions button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger    { background: #e11d48; color: #fff; }
.btn-danger:hover    { background: #be123c; }
.btn-warning   { background: #d97706; color: #fff; }
.btn-warning:hover   { background: #b45309; }
.btn-secondary { background: #334155; color: #e2e8f0; }
.btn-secondary:hover { background: #475569; }
