body {
  font-family: Arial, sans-serif;
  /* background: #4caf50; */ /* green */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  transition:
    background-color 0.3s,
    color 0.3s;
}
body.break {
  background-color: #f44336; /* red */
}
body.work {
  background: #4caf50; /* green */
}
body.long-break {
  background-color: #b3d9ff; /* dark green */
}
.wrapper {
  background-color: rgba(
    0,
    0,
    0,
    0.3
  ); /* semi-transparent black, adjust alpha as needed */
  padding: 20px 70px; /* adjust padding as desired */
  border-radius: 8px; /* optional: rounded corners */
  display: inline-block; /* optional: shrink-wrap the content */
  text-align: center; /* center text inside */
  min-width: 300px;
  max-width: 580px;
  width: min(92vw, 980px);
  box-sizing: border-box;
  margin: 32px auto;
}

.timer-panel {
  margin-bottom: 24px;
}

.page-tagline {
  margin: 0 0 16px;
  font-size: 1rem;
  opacity: 0.9;
  display: none; /* hide by default */
}

.seo-content {
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 20px;
  display: none;
}

.seo-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.seo-content p,
.seo-content li {
  font-size: 1rem;
  line-height: 1.6;
}

.seo-content ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

h1 {
  margin-bottom: 10px;
}
#timer {
  font-size: 80px;
  margin: 20px 0;
  font-weight: bold; /* optional for emphasis */
}
#counter {
  font-size: 20px;
  margin-bottom: 20px;
}
button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
}
#phase {
  font-size: 20px;
  margin-bottom: 10px;
}
#pauseBtn {
  display: none;
}
#buttonContainer {
  display: flex;
  gap: 10px; /* optional: adds space between buttons */
  justify-content: center; /* optional: centers the buttons horizontally */
}
button {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}
button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
/* Style for the play button */
.play-button {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}

/* Create the triangle shape */
.play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 50px solid #4caf50; /* color of the triangle */
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.work-color::before {
  border-left: 50px solid #4caf50; /* color of the triangle*/
}
/*.pause-work-color {*/
.bar-pause-work-color {
  background-color: #4caf50;
}

.break-color::before {
  border-left: 50px solid #f44336; /* color of the triangle */
}
.long-break-color::before {
  border-left: 50px solid #b3d9ff; /* dark green */
}

/*.pause-break-color {*/
.bar-pause-break-color {
  background-color: #f44336;
}

.bar-pause-long-break-color {
  background-color: #b3d9ff; /* dark green */
}

/* Hover effect: change to grey */
.play-button:hover::before {
  border-left-color: grey; /* change color to grey on hover */
}
.pause-button {
  width: 80px;
  height: 80px;

  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  outline: none;
  position: relative;
}

/* The two vertical bars of pause */
.pause-bars {
  display: flex;
  gap: 10px;
}

/* Each bar */
.bar {
  width: 20px;
  height: 50px;
  /* background-color: white; */
  border-radius: 3px;
  /* Optional: add a slight hover effect */
  transition: background-color 0.2s;
}

/* Optional: change color on hover */
.pause-button:hover .bar {
  background-color: #f0f0f0;
}
.skip-button {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}
/* The Triangle (Play Shape) */
.skip-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0; /* Reduced width slightly to make room for the bar */
  border-left: 30px solid #e3dac9;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  position: absolute;
  top: 50%; /* Shifted slightly left of center to balance the bar on the right */
  left: 40%;
  transform: translate(-50%, -50%);
}

/* The Vertical Bar (|) */
.skip-button::after {
  content: "";
  display: block;
  width: 6px; /* Thickness of the bar */
  height: 30px; /* Height matching the triangle's total height */
  background-color: #e3dac9;
  position: absolute;
  top: 50%; /* Positioned to the right of the triangle */
  left: 68%;
  transform: translate(-50%, -50%);
}

.restart-button {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}

/* Create the circular arc */
.restart-button::before {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The circular arc */
.restart-icon {
  width: 20px;
  height: 20px;
  border: 6px solid#e3dac9;
  border-top-color: transparent; /* Creates the gap for the arrow */
  border-radius: 50%;
  position: relative;
  transform: rotate(45deg); /* Rotates the gap to the top-right */
}

/* The Arrowhead */
.restart-icon::before {
  content: "";
  position: absolute;
  top: -9px;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 15px solid#e3dac9;
  transform: rotate(52deg);
}

/* Right Panel Styles */
.header-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}
.right-panel {
  position: fixed;
  top: 0;
  right: -400px; /* Hidden on RIGHT side */
  left: auto; /* Override left positioning */
  width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #689669 0%, #2e9133 100%);
  color: white;
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3); /* Shadow on left side */
  overflow-y: auto;
}

.right-panel.open {
  right: 0; /* Slides in from RIGHT */
  padding: 0 10px 0 10px;
}

.panel-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-panel-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-panel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.panel-content {
  padding: 20px;
}

.setting {
  margin-bottom: 20px;
}

.setting label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.setting input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(15, 23, 42, 0.22);
  color: #f8fafc;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.setting input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.setting input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.setting input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.setting input[type="number"]::-webkit-inner-spin-button,
.setting input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#saveSettingsBtn {
  width: 100%;
  padding: 14px 16px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f4f5 0%, #dfe7ff 100%);
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

#saveSettingsBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

#saveSettingsBtn:active {
  transform: translateY(0);
}

/* Overlay */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Settings Button */
.settings-button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #edeef5 0%, #e7e6e8 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.settings-button::before {
  content: "⚙️";
  font-size: 25px;
}

.settings-button:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Main content adjustments */
.main-content {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding: 80px 20px 20px; /* Increased top padding to make room for button */
  transition: margin-left 0.3s ease;
}

/* .wrapper {
        position: relative;
        min-height: 100vh;
      }*/

/* Responsive adjustments */
@media (max-width: 480px) {
  .header-actions {
    top: 15px;
    right: 15px;
  }

  .main-content {
    padding: 70px 15px 20px;
  }
}
