/* Componentes Reutilizáveis & Modais Customizados */

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}

.btn .material-symbols-outlined {
  font-size: 26px;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
}

.btn-success:hover {
  background: linear-gradient(135deg, #16a34a 0%, #166534 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border: 2px solid #cbd5e1;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: var(--text-muted);
}

.btn-danger-outline {
  background-color: #ffffff;
  color: var(--danger);
  border: 2px solid #fecaca;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-danger-outline:hover {
  background-color: #fef2f2;
  border-color: var(--danger);
}

.btn-lg {
  padding: 20px 40px;
  font-size: 1.3rem;
  border-radius: var(--radius-md);
}

/* Barra de Progresso Geral */
.progress-bar-container {
  width: 100%;
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  height: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* Card Destacado */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

/* Modal Customizado Reutilizável */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.custom-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.custom-modal-card {
  background-color: #ffffff;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #e2e8f0;
}

.custom-modal-overlay.show .custom-modal-card {
  transform: scale(1);
}

.custom-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: var(--shadow-sm);
}

.custom-modal-icon.primary {
  background-color: #eff6ff;
  color: var(--primary);
}

.custom-modal-icon.warning {
  background-color: #fefce8;
  color: var(--warning);
}

.custom-modal-icon.danger {
  background-color: #fef2f2;
  color: var(--danger);
}

.custom-modal-icon .material-symbols-outlined {
  font-size: 42px;
}

.custom-modal-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
}

.custom-modal-message {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 600;
}

.custom-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-modal-actions.horizontal {
  flex-direction: row;
}

/* Ilustração de Mouse em CSS */
.mouse-illustration {
  width: 135px;
  height: 195px;
  border: 5px solid #1e293b;
  border-radius: 68px 68px 58px 58px;
  position: relative;
  margin: 16px auto;
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
}

.mouse-btn-left, .mouse-btn-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 78px;
  border-bottom: 4px solid #1e293b;
  transition: all 0.3s ease;
}

.mouse-btn-left {
  left: 0;
  border-right: 2px solid #1e293b;
  border-top-left-radius: 62px;
}

.mouse-btn-right {
  right: 0;
  border-left: 2px solid #1e293b;
  border-top-right-radius: 62px;
}

.mouse-wheel {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 32px;
  background-color: #1e293b;
  border-radius: 7px;
  z-index: 2;
  transition: all 0.3s ease;
}

.mouse-btn-left.highlight {
  background-color: #bfdbfe;
  box-shadow: inset 0 0 12px var(--primary);
  animation: pulse-light 1.5s infinite;
}

.mouse-btn-right.highlight {
  background-color: #fef08a;
  box-shadow: inset 0 0 12px var(--warning);
  animation: pulse-light 1.5s infinite;
}

.mouse-wheel.highlight {
  background-color: var(--primary);
  animation: wheel-bounce 1s infinite alternate;
}

@keyframes pulse-light {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes wheel-bounce {
  0% { transform: translate(-50%, -4px); }
  100% { transform: translate(-50%, 6px); }
}

/* Caixa de Guia de Ação Acolhedora */
.action-guide-box {
  background-color: #eff6ff;
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.action-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  animation: float 2s infinite ease-in-out;
}

.action-guide-icon .material-symbols-outlined {
  font-size: 32px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
