/* Pomodoro Page Container */
.pomodoro-container {
  max-width: 500px;
  margin: 1.5rem auto;
  background: #1a1a24;
  border: 1px solid #2d2d3a;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle background glow effect */
.pomodoro-container::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Circular Timer Wrapper */
.timer-circle-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

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

.timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 8;
}

.timer-circle-progress {
  fill: none;
  stroke: url(#timer-gradient);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

/* Digital Clock and Status inside circle */
.timer-display {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.timer-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 3.75rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.timer-status {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.timer-status.active {
  color: #818cf8;
  text-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

/* Config & Presets Panel */
.timer-config {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  z-index: 1;
}

/* Presets Row */
.presets-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.preset-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  border: 1px solid #2d2d3a;
  background: #0f0f13;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  color: #e2e8f0;
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.preset-btn.active {
  color: #fff;
  border-color: #6366f1;
  background: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* Custom Input Row */
.custom-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f0f13;
  padding: 0.4rem 0.5rem 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #2d2d3a;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 280px;
}

.custom-input-row:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.custom-input-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-minutes-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  width: 100%;
  text-align: right;
  padding-right: 0.25rem;
}

/* Remove default spin buttons */
.custom-minutes-input::-webkit-outer-spin-button,
.custom-minutes-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-minutes-input {
  -moz-appearance: textfield;
}

.custom-input-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: none;
  background: #2d2d3a;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-input-btn:hover {
  background: #6366f1;
  color: #fff;
}

/* Main Controls Row */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  z-index: 1;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* Start/Pause Button (Primary Accent) */
.btn-primary {
  width: 140px;
  height: 48px;
  font-size: 0.95rem;
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: #4f52d4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Reset Button (Secondary) */
.btn-secondary {
  width: 48px;
  height: 48px;
  background: #2d2d3a;
  color: #94a3b8;
  border: 1px solid #3b3b4f;
}

.btn-secondary:hover {
  background: #3b3b4f;
  color: #e2e8f0;
  border-color: #64748b;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(1px);
}

/* Test Gong / Utilities Row */
.utilities-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  border-top: 1px solid #2d2d3a;
  padding-top: 1.25rem;
  z-index: 1;
}

.test-gong-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px dashed #2d2d3a;
  color: #64748b;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test-gong-btn:hover {
  border-color: #818cf8;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.02);
}

.test-gong-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
