/* Estilos para o botão de pausa no cabeçalho */
.pause-container {
  position: relative;
  display: inline-block;
}

.btn-pause {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.btn-pause:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.btn-pause:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.btn-pause i {
  font-size: 1rem;
}

/* Dropdown de motivos de pausa */
.pause-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.pause-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pause-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.pause-option:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.pause-option:first-child {
  border-radius: 8px 8px 0 0;
}

.pause-option:hover {
  background-color: #f9fafb;
}

.pause-option i {
  color: #6b7280;
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.pause-option span {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Overlay de pausa */
.pause-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pause-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal de pausa */
.pause-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.pause-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.pause-modal-header h2 {
  margin: 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
}

.pause-modal-body {
  padding: 24px;
}

/* Timer de pausa */
.pause-timer {
  margin-bottom: 24px;
}

.timer-display {
  font-size: 3rem;
  font-weight: 700;
  color: #f59e0b;
  font-family: "Courier New", monospace;
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
  letter-spacing: 2px;
}

/* Motivo da pausa */
.pause-reason {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.pause-reason i {
  font-size: 1.5rem;
  color: #6b7280;
}

.pause-reason span {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
}

/* Botão de despausar */
.btn-unpause {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-unpause:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-unpause:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-unpause i {
  font-size: 1.25rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .pause-dropdown {
    right: -50px;
    min-width: 180px;
  }

  .timer-display {
    font-size: 2.5rem;
  }

  .pause-modal {
    margin: 20px;
  }

  .pause-modal-header {
    padding: 20px 20px 12px;
  }

  .pause-modal-body {
    padding: 20px;
  }
}

/* Animações */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pause-overlay.active .timer-display {
  animation: pulse 2s infinite;
}

/* Estados especiais para diferentes motivos */
.pause-reason[data-reason="banheiro"] i {
  color: #3b82f6;
}

.pause-reason[data-reason="cafe"] i {
  color: #8b4513;
}

.pause-reason[data-reason="problemas-tecnicos"] i {
  color: #ef4444;
}

.pause-reason[data-reason="reuniao"] i {
  color: #6366f1;
}

.pause-reason[data-reason="almoco"] i {
  color: #f59e0b;
}
