/* Таймер */

.timer-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.timer-circle-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 24px;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-circle-track {
  fill: none;
  stroke: #EFEFF4;
  stroke-width: 16;
}

.timer-circle-progress {
  fill: none;
  stroke: #4318FF;
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s;
}

.timer-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 600;
  color: #4318FF;
  text-align: center;
  z-index: 10;
}

.timer-controls {
  display: flex;
  gap: 16px;
  width: 100%;
}

.timer-circle-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minutes { flex: none; margin-bottom: 8px; }

.timer-circle-container { 
  flex: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.timer-button {
  display: flex;
  flex: 1;
  width: 250px;
  height: 80px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
  gap: 8px;
  position: relative;
  justify-content: center;
  pointer-events: auto;
   z-index: 10;
}

.timer-button * {
  pointer-events: none;
}

.timer-button.primary {
  background-color: #4318FF;
  color: white;
  flex-direction: row;
}

.timer-button img {
  width: 25px;
  height: 25px;
}

.timer-button.primary:hover {
  background-color: #3a14e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 24, 255, 0.3);
}

.timer-button.secondary {
  background-color: #F8F9FA;
  color: #1A1A1A;
}

.timer-button.secondary:hover {
  background-color: #E5E7EB;
}

.timer-button.success {
  background-color: #16DBCC;
  color: white;
}

.timer-button.success:hover {
  background-color: #14c4b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 219, 204, 0.3);
}

.timer-button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.timer-button-row.centered {
  justify-content: center;
}

.timer-panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.camera-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  opacity: 0.8;
}
