.pomodoro-page {
  color: #26313f;
}

main > .row,
footer .row {
  margin-left: 0;
  margin-right: 0;
}

.pomodoro-container {
  max-width: 1200px;
}

.pomodoro-title {
  border-left: 0.65rem solid #d84a4a;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  padding-left: 1rem;
  text-align: left;
}

.pomodoro-lead {
  color: #52606d;
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 1.3rem;
  text-align: left;
}

.pomodoro-tool {
  background:
    radial-gradient(circle at top right, rgba(216, 74, 74, 0.2), transparent 34%),
    linear-gradient(145deg, #17243a, #091321 70%);
  border: 1px solid #253a54;
  border-radius: 1rem;
  color: #f8fafc;
  min-height: 35rem;
  overflow: hidden;
  padding: clamp(1.3rem, 4vw, 2.75rem);
  position: relative;
  text-align: center;
}

.pomodoro-tabs {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.pomodoro-tab,
.pomodoro-preset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #536981;
  border-radius: 999px;
  color: #d7e2ee;
  cursor: pointer;
  font-weight: 700;
  padding: 0.48rem 0.9rem;
}

.pomodoro-tab:hover,
.pomodoro-tab:focus,
.pomodoro-preset:hover,
.pomodoro-preset:focus {
  border-color: #f19a9a;
  color: #fff;
}

.pomodoro-tab--active,
.pomodoro-preset--active {
  background: #d84a4a;
  border-color: #d84a4a;
  color: #fff;
}

.pomodoro-tab:disabled,
.pomodoro-preset:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pomodoro-tool__status {
  align-items: center;
  color: #b9c7d7;
  display: flex;
  font-size: 0.95rem;
  gap: 0.5rem;
  justify-content: center;
  min-height: 1.5rem;
}

.pomodoro-tool__status-dot {
  background: #8093a9;
  border: 0.25rem solid rgba(128, 147, 169, 0.2);
  border-radius: 50%;
  height: 0.75rem;
  width: 0.75rem;
}

.pomodoro-tool__status-dot--running {
  background: #8eb41c;
  border-color: rgba(142, 180, 28, 0.24);
}

.pomodoro-tool__status-dot--paused {
  background: #f3b63f;
  border-color: rgba(243, 182, 63, 0.22);
}

.pomodoro-tool__status-dot--completed {
  background: #f17878;
  border-color: rgba(241, 120, 120, 0.25);
}

.pomodoro-tool__phase {
  color: #f5b2b2;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 1rem 0 0;
}

.pomodoro-tool__display {
  display: block;
  font-size: clamp(4.6rem, 12vw, 8.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0.25rem auto 0.85rem;
}

.pomodoro-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 0.45rem;
  margin: 0 auto 0.8rem;
  max-width: 32rem;
  overflow: hidden;
}

#pomodoro-progress-bar {
  background: linear-gradient(90deg, #d84a4a, #f19a9a);
  display: block;
  height: 100%;
  transition: width 0.2s linear;
  width: 0;
}

.pomodoro-rounds {
  color: #b9c7d7;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.pomodoro-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.pomodoro-settings {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #32475f;
  border-radius: 0.75rem;
  margin: 0 auto 1rem;
  max-width: 40rem;
  padding: 0.85rem 1rem;
  text-align: left;
}

.pomodoro-settings summary {
  color: #e3ebf4;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.pomodoro-settings__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.pomodoro-settings__grid label {
  color: #b9c7d7;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  gap: 0.35rem;
}

.pomodoro-settings__grid input {
  background: rgba(255, 255, 255, 0.08);
  border-color: #61758d;
  color: #fff;
  font-weight: 700;
  min-width: 0;
  text-align: center;
}

.pomodoro-settings__grid input:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: #d84a4a;
  box-shadow: 0 0 0 0.2rem rgba(216, 74, 74, 0.18);
  color: #fff;
}

.pomodoro-settings__grid input:disabled {
  color: #b9c7d7;
  opacity: 0.65;
}

.pomodoro-auto-start {
  align-items: center;
  color: #d7e2ee;
  display: flex;
  font-size: 0.88rem;
  gap: 0.55rem;
  justify-content: center;
  margin: 0.9rem 0 0;
}

.pomodoro-auto-start input {
  height: 1rem;
  width: 1rem;
}

.pomodoro-tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1rem;
}

.pomodoro-tool__actions .btn {
  font-weight: 800;
  min-width: 8.5rem;
}

.pomodoro-tool__primary {
  min-width: 10rem !important;
}

.pomodoro-complete {
  align-items: center;
  background: rgba(216, 74, 74, 0.18);
  border: 1px solid #ef8d8d;
  border-radius: 0.75rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem auto 0;
  max-width: 31rem;
  padding: 0.75rem 1rem;
}

.pomodoro-complete[hidden] {
  display: none;
}

.pomodoro-tool__shortcuts {
  color: #91a4b8;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 1rem auto 0;
}

.pomodoro-tool__exit {
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: #17243a;
  cursor: pointer;
  font-weight: 800;
  padding: 0.6rem 1rem;
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  z-index: 3;
}

.pomodoro-tool:fullscreen,
.pomodoro-tool--focus {
  align-items: center;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
}

.pomodoro-tool:fullscreen .pomodoro-tool__display,
.pomodoro-tool--focus .pomodoro-tool__display {
  font-size: clamp(7rem, 20vw, 18rem);
}

.pomodoro-tool:fullscreen .pomodoro-settings,
.pomodoro-tool--focus .pomodoro-settings,
.pomodoro-tool:fullscreen .pomodoro-presets,
.pomodoro-tool--focus .pomodoro-presets {
  display: none;
}

.pomodoro-tool--focus {
  inset: 0;
  overflow-y: auto;
  position: fixed;
  z-index: 1050;
}

body.pomodoro-focus-mode {
  overflow: hidden;
}

.pomodoro-ad {
  margin: 1rem auto 1.75rem;
  min-height: 90px;
  text-align: center;
}

.pomodoro-layout {
  align-items: flex-start;
}

.pomodoro-content {
  text-align: left;
}

.pomodoro-section {
  background: #fff;
  border: 1px solid #dbe3eb;
  border-radius: 0.85rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.pomodoro-section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 1rem;
}

.pomodoro-section h3 {
  font-size: 1.08rem;
  margin: 1.1rem 0 0.35rem;
}

.pomodoro-section p,
.pomodoro-steps {
  font-size: 1.02rem;
  line-height: 1.8;
}

.pomodoro-steps {
  padding-left: 1.4rem;
}

.pomodoro-method-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pomodoro-method-card {
  background: #f5f8fb;
  border: 1px solid #dce5ed;
  border-radius: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
}

.pomodoro-method-card strong {
  color: #bd3737;
  font-size: 1.2rem;
}

.pomodoro-method-card span {
  color: #52606d;
  line-height: 1.55;
}

.pomodoro-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.pomodoro-cluster a {
  background: #eef4f9;
  border: 1px solid #d7e1ea;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.pomodoro-sidebar {
  position: sticky;
  top: 1rem;
}

@media (max-width: 991.98px) {
  .pomodoro-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .pomodoro-tool {
    min-height: 33rem;
  }

  .pomodoro-settings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pomodoro-method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pomodoro-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pomodoro-tab {
    font-size: 0.82rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .pomodoro-tool__display {
    font-size: clamp(4rem, 21vw, 6rem);
  }

  .pomodoro-tool__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .pomodoro-tool__actions .btn {
    min-width: 0 !important;
    width: 100%;
  }

  .pomodoro-complete {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .pomodoro-settings__grid {
    grid-template-columns: 1fr;
  }
}
