body {
  font-family: Arial, sans-serif;
  /*background-color: #121212;*/
  background-color: white;
  /* color: #f1f1f1;*/
  color: #333333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 0;
}

.container {
  text-align: center;
  max-width: 800px;
  padding: 20px;
  /*background-color: #1f1f1f;*/
  background-color: ghostwhite;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 200px;
  height: auto;
}

label {
  display: block;
  margin-bottom: 0rem;
  font-size: 1rem;
}

.input-wrapper {
  margin-bottom: 1rem;
}

input {
  margin-left: 0.5rem;
  padding: 0.4rem;
  font-size: 1rem;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #00aeef;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #e0e0e0;

}

#pause-btn {
  background-color: #00aeef;
  color: white;
}

#pause-btn:hover {
  background-color: #009dd7;
}

#restart-btn {
  background-color: #ff6b35;
  color: white;
}

#restart-btn:hover {
  background-color: #e55a2b;
}

.timer {
  text-align: center;
  /*padding: 20px;*/
  /*background-color: #333333;*/
  /*background-color: #dfdfe6;*/
  border-radius: 10px;
  /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
}

#countdown {
  font-size: 4rem;
  font-weight: bold;
  margin: 5px 0;
  color: #333333
}

#status {
  color: #00ffae;
  text-shadow: 2px 2px 2px #1d1d1d;
  margin-bottom: 5px;
}

#round-display {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #333333;
}

#exercise-display {
  display: none;
  color: #1d1d1d;
  background: #00ffae22;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #ff00f355;
  margin: 12px 0;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px #fff, 0 0 2px #fff;
}

#exercise-display.active {
  display: block;
}

@keyframes exercise-glow {
  0% { box-shadow: 0 0 8px #ff00f355, 0 0 0 #FFA600; }
  50% { box-shadow: 0 0 24px #ff00f399, 0 0 8px #FFA600; }
  100% { box-shadow: 0 0 8px #ff00f355, 0 0 0 #FFA600; }
}

.toggle-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  padding: 0 20px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  text-align: left
}

.toggle-label:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #ff00f3;
}

.toggle-label input[type="checkbox"]:checked + .toggle-text {
  color: #ff4081;
}

.toggle-text {
  font-size: 1rem;
  color: #333333;
}

/* Tab Styles */
.tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background-color: #00aeef;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: #009dd7;
}

.tab-btn.active {
  background-color: #f0f0f0;
  border-bottom:1px solid #00aeef;
  color: #333333;
}

.tab-btn.active:hover {
  background-color: #333;
  color: white;
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Style the settings tab */
#settings-tab {
  padding: 20px;
  background-color: #dfdfe6;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Workout Plan Styles */
.workout-plan {
  margin-top: 30px;
  padding: 20px;
  /*background-color: #333333;*/
  /*background-color: #dfdfe6;*/
  border-radius: 10px;
  text-align: left;
}

.workout-plan h3 {
  margin: 0 0 15px 0;
  color: #ff00f3;
  text-align: center;
}

#exercise-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exercise-item {
  padding: 10px;
  background-color: #C9C9CF ;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exercise-item.active {
  border-left: 4px solid #ff00f3;
}

.exercise-item.completed {
  display: none;
  /*opacity: 0.6;*/
}

.exercise-item .exercise-name {
  font-weight: bold;
}

.exercise-item .exercise-duration {
  color: #ff00f3;
}

.radio-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  text-align: left;
}

.radio-label:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.radio-label input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

.radio-text {
  font-size: 1rem;
  color: #333333;
}

#programmed-hiit, #hiit-form {
  display: none;
}

/* Add styles for when forms should be visible */
#programmed-hiit.visible, #hiit-form.visible {
  display: block;
}

/* Customizations section is hidden by default */
#customizations {
  display: block;
  margin-top: 20px;
}

/* Show customizations when either form is visible */
#programmed-hiit.visible ~ #customizations,
#hiit-form.visible ~ #customizations,
#customizations.visible {
  display: block;
}

button.settings.tab-btn {
  padding: 5px
}

.settings-icon {
  width: 40px;
  height: 40px;
}

#refresh-settings-btn {
  background-color: #00aeef;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

#refresh-settings-btn:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

#refresh-settings-btn:active {
  background-color: #d0d0d0;
}

.step-number {
  font-family: "Abril Fatface", serif;
  font-weight: bold;
  font-style: normal;
  font-size: 28px;
  color: #009dd7;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

#exercise-image {
  background-color: #ffffff /*#dfdfe6*/;
  border-radius: 10px;
  padding: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #ff00f355;
  margin: 12px 0;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px #fff, 0 0 2px #fff;
  width: 332px;
  height: 160px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cooldown-separator {
  text-align: center;
  font-weight: bold;
  color: #00ffae;
  margin: 10px 0;
  padding: 5px;
  border-radius: 5px;
  text-shadow: 1px 1px 1px #000;
}
/*Added from ChatGPT*/
/* Split layout for workout-tab on tablets and desktops only */
@media screen and (min-width: 768px) {
  #workout-tab.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #workout-tab.active #exercise-info {
    width: 100%;
  }

  #workout-tab.active .workout-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  #workout-tab.active .workout-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #workout-tab.active #exercise-image {
    align-self: center;
    margin: 0 auto;
  }

  #workout-tab.active #workout-plan {
    flex: 1;
    margin-top: 0;
  }

}
/*END GPT ADD*/

/* Auth0 Authentication Styles */
.auth-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn, .logout-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.login-btn:hover, .logout-btn:hover {
  background-color: #0056b3;
}

.logout-btn {
  background-color: #dc3545;
  margin-left: 10px;
}

.logout-btn:hover {
  background-color: #c82333;
}

#user-name {
  font-weight: bold;
  color: #333;
}

@media (max-width: 768px) {
  .auth-section {
    flex-direction: column;
    gap: 5px;
  }
  
  .login-btn, .logout-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Dashboard Styles */
.dashboard-content {
  text-align: center;
  padding: 40px 20px;
}

.dashboard-content h1 {
  color: #333;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.user-details {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-details p {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #555;
}

.dashboard-actions {
  margin-top: 40px;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0056b3;
  color: white;
  text-decoration: none;
}

.profile-pic {
  border: 3px solid #007bff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Login Screen Styles */
.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.login-content {
  max-width: 500px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 30px;
}

.login-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: 'Abril Fatface', cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.login-features {
  display: flex;
  justify-content: space-around;
  margin: 40px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 120px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.feature span:last-child {
  font-size: 1.1rem;
  font-weight: 500;
}

.login-btn-large {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
}

.login-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

.login-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 20px;
}

/* Main App Styles */
.main-app {
  display: block;
}

/* Responsive Design for Login Screen */
@media (max-width: 768px) {
  .login-content {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .login-content h1 {
    font-size: 2.5rem;
  }
  
  .login-features {
    flex-direction: column;
    gap: 15px;
  }
  
  .feature {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  
  .feature-icon {
    font-size: 2rem;
    margin-right: 15px;
  }
}