/* ===== Tools Common Styles ===== */

.tool-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.tool-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.tool-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.tool-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== Pomodoro Timer ===== */

.pomodoro-display {
  margin-bottom: 32px;
}

.timer-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
}

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

.timer-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

.timer-progress.break {
  stroke: #4ade80;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -2px;
}

.timer-separator {
  opacity: 0.5;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 0.5; }
  51%, 100% { opacity: 0.2; }
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#session-type {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-light);
}

.session-count {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Buttons ===== */

.pomodoro-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ===== Stats ===== */

.pomodoro-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Settings ===== */

.pomodoro-settings {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-item label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setting-item select {
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  cursor: pointer;
}

.setting-item select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== Notification ===== */

.notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 16px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(124, 106, 247, 0.2);
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== Responsive ===== */

@media (max-width: 480px) {
  .timer-ring {
    width: 180px;
    height: 180px;
  }
  
  .timer-text {
    font-size: 2.8rem;
  }
  
  .pomodoro-stats {
    gap: 20px;
    padding: 16px;
  }
  
  .stat-value {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
