* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #1e1e24;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transition: background-color 0.5s ease;
}

body.light-mode {
  background-color: #f0f0f5;
  color: #333;
}

body.light-mode .timer {
  color: #333;
}

.container {
  background-color: #2a2a33;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 40px;
  width: 700px;
  color: #fff;
  transition: background-color 0.5s ease;
}

body.light-mode .container {
  background-color: #fff;
  color: #333;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.content {
  display: flex;
  justify-content: space-between;
}

.left-side,
.right-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.timer {
  margin-bottom: 20px;
}

.circle {
  width: 250px;
  height: 250px;
  border: 10px solid #4caf50;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.5rem;
  font-weight: 500;
  position: relative;
}

.circle:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.status {
  margin-top: 20px;
  text-align: center;
}

#motivational-message {
  font-size: 1.2rem;
  color: #bbb;
}

.controls button {
  font-size: 1rem;
  padding: 15px 35px;
  margin: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  font-weight: 600;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
}

#start {
  background-color: #4caf50;
  color: white;
}

#pause {
  background-color: #f0ad4e;
  color: white;
}

#reset {
  background-color: #d9534f;
  color: white;
}

#toggle-mode {
  background-color: #4a4a4a;
  color: #fff;
  font-size: 1rem;
  padding: 12px 30px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s, color 0.3s;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#toggle-mode i {
  transition: transform 0.3s, opacity 0.3s;
}

body.light-mode #toggle-mode .fa-sun {
  opacity: 1;
  transform: rotate(360deg);
}

body:not(.light-mode) #toggle-mode .fa-moon {
  opacity: 1;
  transform: rotate(-360deg);
}

#toggle-mode:hover {
  background-color: #5a5a5a;
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.3);
}

#toggle-mode:active {
  transform: translateY(2px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.controls button:hover {
  transform: translateY(-5px);
  box-shadow: 0px 12px 18px rgba(0, 0, 0, 0.4);
}

.controls button:active {
  transform: translateY(2px);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

#settings {
  background-color: #007bff;
  color: white;
  font-size: 1.1rem;
  padding: 15px 35px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

#settings:hover {
  background-color: #0056b3;
  transform: translateY(-5px);
}

#settings:active {
  transform: translateY(2px);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: #2a2a33;
  color: #fff;
  margin: 12% auto;
  padding: 30px 20px;
  border-radius: 12px;
  width: 400px;
  text-align: center;
  box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.4);
  transform: scale(1);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #4caf50;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}

.form-row label {
  font-size: 0.9rem;
  color: #bbb;
  text-align: right;
  width: 170px;
  padding-right: 6px;
  margin-left: 25px;
}

.form-row select {
  padding: 8px;
  width: 120px;
  border-radius: 6px;
  border: 2px solid #555;
  background-color: #fff;
  text-align: left;
  font-size: 0.9rem;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-row select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.modal-content button {
  background-color: #4caf50;
  color: white;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.modal-content button:hover {
  background-color: #45a049;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-content .close-modal {
  background-color: #d9534f;
}

.modal-content .close-modal:hover {
  background-color: #c9302c;
}

.history {
  margin-top: 20px;
  text-align: center;
  font-size: 1.2rem;
  color: #bbb;
}

body.light-mode .history,
body.light-mode .status {
  color: #333;
}

.completed-cycles {
  margin-top: 10px;
  font-size: 1.2rem;
}

.circle-timer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 250px;
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.timer {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.5rem;
  font-weight: 500;
  color: #fff;
  width: 100%;
  height: 100%;
  margin-top: 10px;
}

@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  opacity: 0;
  animation: fadeInSlideUp 1s ease-in-out forwards;
  animation-delay: 0.2s;
}

.circle-timer {
  opacity: 0;
  animation: fadeInSlideUp 1.2s ease-in-out forwards;
  animation-delay: 0.4s;
}

.controls button,
.extra-controls button {
  opacity: 0;
  animation: fadeInSlideUp 1.4s ease-in-out forwards;
  animation-delay: 0.6s;
}
