/* manus-style.css - Tema Premium (Azul Profundo e Dourado) */

#manus-modal-overlay, #manus-toast-container, #manus-video-overlay {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

#manus-modal-overlay *, #manus-toast-container *, #manus-video-overlay * {
  box-sizing: inherit;
}

#manus-fab {
  position: fixed; bottom: 20px; right: 20px; width: 64px; height: 64px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border: 2px solid #d4af37;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #d4af37; font-size: 28px; cursor: move;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.4), 0 0 15px rgba(212, 175, 55, 0.2); 
  z-index: 9999; touch-action: none; transition: transform 0.2s ease;
}
#manus-fab:active { transform: scale(0.95); }

#manus-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 10000;
}

.manus-modal {
  background: #ffffff; width: 92%; max-width: 420px; border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column; max-height: 85vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.manus-modal-header {
  padding: 18px 20px; 
  background: linear-gradient(to right, #0f172a, #1e3a8a);
  color: #ffffff; 
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 10;
}
.manus-modal-header strong { font-size: 16px; letter-spacing: 0.5px; }
.manus-modal-header span { color: #d4af37; transition: color 0.2s; }
.manus-modal-header span:hover { color: #fef08a; }

.manus-modal-content { 
  padding: 20px; overflow-y: auto; flex: 1; 
  background-color: #f8fafc;
}

.manus-list-item {
  background: #ffffff; padding: 16px 18px; border-radius: 12px;
  border: 1px solid #e2e8f0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; color: #1e293b; font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.manus-list-item:hover {
  transform: translateY(-2px);
  border-color: #d4af37;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}
.manus-list-item span:last-child { color: #d4af37; font-size: 20px; font-weight: bold; }

.manus-btn-back { 
  cursor: pointer; color: #bae6fd; font-weight: 600; 
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px; 
  transition: color 0.2s ease;
}
.manus-btn-back:hover {
  color: #ffffff;
}

.manus-view-modes { 
  display: flex; background: #e2e8f0; padding: 4px; 
  border-radius: 10px; margin-bottom: 16px; 
}
.manus-mode-btn { 
  flex: 1; font-size: 12px; font-weight: 600; padding: 8px; 
  cursor: pointer; border: none; background: transparent; 
  border-radius: 8px; color: #64748b; transition: all 0.3s; text-transform: uppercase;
}
.manus-mode-btn.active { 
  background: #ffffff; color: #0f172a; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
}

.manus-palpites-grid { 
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; 
}

/* Modificado: Borda azul bem clara nos palpites */
.manus-palpite-card { 
  background: #ffffff; padding: 6px 10px; border-radius: 8px; 
  text-align: center; font-weight: 700; font-size: 15px; letter-spacing: 1px;
  color: #0f172a; border: 1px solid #93c5fd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03); flex: 0 0 auto;
}

.manus-btn-copy {
  background: #1e3a8a; color: #ffffff; border: none; padding: 14px; 
  font-size: 14px; font-weight: bold; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 10px; margin-top: 20px; width: 100%; cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.manus-btn-copy:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(30, 58, 138, 0.3); }

.manus-update-note {
  font-size: 11px; color: #94a3b8; text-align: center; margin-top: 12px; margin-bottom: 4px;
}

.manus-refresh-link {
  display: block; text-align: center; font-size: 13px; color: #1e3a8a; 
  font-weight: bold; cursor: pointer; text-decoration: none; transition: opacity 0.2s;
}
.manus-refresh-link:hover { opacity: 0.8; text-decoration: underline; }

.manus-auditoria-box {
  background: #ffffff; border: 1px solid #1e3a8a;
  padding: 12px;
  border-radius: 8px; margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.manus-auditoria-box small {
  display: block; color: #64748b; font-weight: 700;
  margin-bottom: 8px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px;
}

.manus-auditoria-grid {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.manus-auditoria-cell {
  background: #f1f5f9; border: 1px solid #cbd5e1; padding: 4px 6px;
  border-radius: 4px; font-family: 'Courier New', Courier, monospace; font-size: 12px;
  color: #334155; font-weight: 600; text-align: center; flex: 0 0 auto;
}

.manus-bancas-container { display: flex; flex-direction: column; gap: 14px; }
.manus-banca-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px; display: flex; justify-content: space-between; align-items: center;
  transition: box-shadow 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.manus-banca-card:hover { box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06); }
.manus-banca-info { flex: 1; padding-right: 15px; }
.manus-banca-info strong {
  display: block; font-size: 15px; color: #0f172a; margin-bottom: 6px; font-weight: 700;
}
.manus-banca-info p { font-size: 12px; color: #64748b; margin: 0; line-height: 1.4; }

.manus-banca-link {
  background: #1e3a8a; color: #ffffff; text-decoration: none;
  font-size: 12px; font-weight: bold; text-transform: uppercase;
  padding: 10px 16px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 2px 5px rgba(30, 58, 138, 0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.manus-banca-link:active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(30, 58, 138, 0.3); }

#manus-toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 10001; width: 90%; max-width: 380px; display: none;
}
.manus-toast {
  background: #0f172a; color: #ffffff; border-radius: 14px; padding: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3); border: 1px solid #1e3a8a;
  position: relative; animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideDown { 
  from { transform: translateY(-30px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; } 
}
.manus-toast-close {
  position: absolute; top: 12px; right: 15px; cursor: pointer;
  font-size: 22px; color: #64748b; line-height: 1; transition: color 0.2s;
}
.manus-toast-close:hover { color: #ffffff; }
.manus-toast-text { font-size: 14px; line-height: 1.5; margin-bottom: 12px; padding-right: 15px;}
.manus-toast-link { 
  font-size: 13px; color: #d4af37; font-weight: 600; text-decoration: none; 
  cursor: pointer; display: inline-block; transition: opacity 0.2s;
}
.manus-toast-link:hover { opacity: 0.8; text-decoration: underline; }

#manus-video-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; z-index: 10002;
}
.manus-video-container { 
  width: 95%; max-width: 800px; position: relative; 
  display: flex; flex-direction: column; align-items: center;
}
.manus-video-wrapper { 
  position: relative; width: 100%; aspect-ratio: 16 / 9; 
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 2px rgba(212, 175, 55, 0.3);
}
@media (max-width: 480px) {
  .manus-video-container { max-width: 320px; }
  .manus-video-wrapper { aspect-ratio: 9 / 16; }
}
.manus-video-wrapper iframe { 
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
}
.manus-video-close {
  position: absolute; top: -50px; right: 0; color: #ffffff;
  font-size: 40px; cursor: pointer; font-weight: 300;
  z-index: 10003; transition: color 0.2s;
}
.manus-video-close:hover { color: #d4af37; }
@media (max-width: 480px) {
  .manus-video-close { right: 5px; }
}

/* PWA Banner Styles */
#manus-pwa-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid #d4af37;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.manus-pwa-text {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.manus-pwa-buttons {
  display: flex;
  gap: 10px;
}

.manus-pwa-install-btn {
  flex: 2;
  background: #d4af37;
  color: #0f172a;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s;
}

.manus-pwa-install-btn:active { transform: scale(0.95); }

.manus-pwa-later-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.manus-pwa-later-btn:hover { background: rgba(255, 255, 255, 0.2); }