* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0f0f0f;
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.btn-signup, .btn-logout {
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 300px;
  border: 1px solide red;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

.hero-text p {
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
}
.hero-link a {
  margin-bottom: 1rem;
}

.btn-generate {
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 1rem;
  text-decoration: none;
}
.btn-generate:hover {
  opacity: 0.8;
}

.link-tujuan {
  color: #00c6ff;
  text-decoration: underline;
  font-weight: 500;
}

.hero-img {
  flex: 1 1 300px;
  text-align: center;
}

.hero-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  width: 100%;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.form-card {
  background: #1a1a1a;
  border-radius: 15px;
  width: 100%;
}

/* Styling untuk elemen goalItem */
.goalItem {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.data-card {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.2);
  text-align: left;
}

.data-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.data-card p {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0;
  line-height: 1.5;
}

.data-card p strong {
  color: #ffffff;
  font-weight: 600;
}

.data-card-btn {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

/* Styling untuk tombol Update Tujuan */
.btn-update-user, .btn-update-goal {
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  width: 100%;
}

.data-card-btn .btn-update-user:hover {
  opacity: 0.8;
}
.data-card-btn .btn-update-goal:hover {
  opacity: 0.8;
}

.card h3 {
  margin: 1rem 0 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #ccc;
}

#goalSection, #planSection {
  padding: 1.5rem 2rem;
  max-width: 800px;
  margin: auto;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.goalItemButton, .planItemButton {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.goalItemButton button, .planItemButton button {
  background: linear-gradient(to right, #0072ff, #00c6ff);
  padding: 0.6rem 1rem;
  color: white;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}
.goalItemButton button:hover {
  opacity: 0.8;
}
.planItemButton button:hover {
  opacity: 0.8;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

form input, form select, form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border-radius: 5px;
  border: none;
  background: #2a2a2a;
  color: white;
}

form button {
  margin-top: 1.5rem;
  background: linear-gradient(to right, #0072ff, #00c6ff);
  border: none;
  padding: 0.6rem 1rem;
  color: white;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.workout-day-card {
  margin-top: 1.5rem;
  background: #242424;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,102,255,0.2);
}

.exercise-item {
  background: #2a2a2a;
  margin-top: 0.5rem;
  padding: 0.6rem;
  border-radius: 5px;
}


.custom-swal-popup {
  background: #1a1a1a !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  padding: 20px !important;
}

.custom-swal-confirm {
  background: linear-gradient(to right, #0072ff, #00c6ff) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 5px;
  padding: 10px 20px;
  transition: opacity 0.3s;
}

.custom-swal-confirm:hover {
  opacity: 0.8;
}

.plan-container {
  width: 100%;
  padding: 1rem;
  color: #ffffff;
  text-align: center;
}

.regenerate {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.regenerate button {
  background: linear-gradient(to right, #0072ff, #00c6ff);
  padding: 0.6rem 1rem;
  color: white;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.day-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.day-card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.2);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.day-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.3);
}

.day-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.day-card p {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0;
}

.day-card .btn-view-exercises {
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: opacity 0.3s;
  width: 100%;
}

.day-card .btn-view-exercises:hover {
  opacity: 0.8;
}

.exercise-container {
  width: 100%;
  padding: 1rem;
  color: #ffffff;
}

.exercise-container .btn-back {
  background: #333;
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.3s;
}

.exercise-container .btn-back:hover {
  background: #444;
}

.exercise-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 10px;
}

.exercise-card {
  text-align: center;
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.2);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.exercise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.3);
}

.exercise-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.exercise-card p {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0.3rem 0;
}

.exercise-details {
  text-align: left;
  font-size: 16px;
  color: #ffffff;
  margin: 0;
}

.exercise-details p {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.exercise-details p strong {
  color: #ffffff;
  font-weight: 600;
}


.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  padding: 2rem;
  border-top: 1px solid rgba(0, 102, 255, 0.2);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #ccc;
}


@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-link{
    display: flex;
    flex-direction: column;
  }

  .hero-img {
    margin-right: 20px;
  }

  nav ul {
    display: none;
  }

  #goalSection, #planSection {
  padding: 0.7rem;
  max-width: 400px;
  }

  .goalItemButton, .planItemButton{
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  flex-wrap: nowrap;
  gap: 5px;
  }
  #goalSection, #planSection {
  padding: 0.7rem;
  max-width: 300px;
  }
}

@media (max-width: 430px) {
  header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  flex-wrap: nowrap;
  gap: 5px;
  }

  .logo {
  font-size: 1rem;
  font-weight: 800;
}
}
