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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-position: center;
  background-size: cover;
  background-image: url("./images/Homepage/RowInHotel9.jpg");
  padding: 20px;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 8px 20px;
  background: linear-gradient(
        135deg,
        rgba(59, 55, 194, 1), 
        rgba(91, 46, 189, 1)
    );
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
}

.navbar-left a,
.navbar-right a {
  margin: 0 0;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  font-weight: bold;
}


.navbar a:hover {
  background-color: #ddd;  
  color: #333;
  border-radius: 4px;
  cursor: pointer;
}

a.site-name:hover #domain-part1 { color: #333; }
a.site-name:hover #domain-part2 { color: #333; }
a.site-name:hover #domain-part3 { color: #333; }
a.site-name:hover #domain-part4 { color: #333; }
a.site-name:hover #domain-part5 { color: #333; }

a.home:hover #home-part1 { color: #333; }
a.home:hover #home-part2 { color: #333; }
a.home:hover #home-part3 { color: #333; }
a.home:hover #home-part4 { color: #333; }

/* Website name styling */
.site-name {
  font-size: 1.2em;
}

.home {
  font-size: 1.2em;
  display: none;
}

#domain-part1 { color: #ff6666; }  /* light rosy red */
#domain-part2 { color: #ff8f66; }  /* soft coral */
#domain-part3 { color: #ffb266; }  /* orange-peach */
#domain-part4 { color: #ffd966; }  /* warm yellow */
#domain-part5 { color: #fff5b7; }  /* pale yellow for .com */

#home-part1 { color: #ff8f66; }  
#home-part2 { color: #ffb266; }  
#home-part3 { color: #ffd966; }
#home-part4 { color: #fff5b7; }  

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.exercise-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.exercise-card:hover {
    background: #f1f5f9;
    border-color: #4f46e5;
    transform: scale(1.02);
}

.exercise-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.exercise-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.exercise-sets-reps {
    color: #4f46e5;
    font-weight: 500;
}

.exercise-muscle {
    color: #64748b;
    font-style: italic;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.close-button:hover {
    color: #333;
}

/* Search Modal Styles */
.search-container {
    margin: 15px 0;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.exercise-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.exercise-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exercise-item:hover {
    background-color: #f5f5f5;
}

.exercise-item:last-child {
    border-bottom: none;
}

/* Modal title */
.detail-title {
  margin-bottom: 15px;
  color: #433db1;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
}

/* Section headers */
.detail-section h3 {
  margin: 15px 0 8px;
  color: #334155;
  font-size: 1.2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 5px;
}

/* Carousel */
.carousel {
  position: relative;
  margin: 20px 0;
  width: 100%;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(79, 70, 229, 0.8);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(79, 70, 229, 1);
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

/* Video */
#detailVideoContainer iframe {
  width: 100%;
  height: 315px;
  border-radius: 10px;
}

.exercise-info-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem; 
}

.label {
  font-weight: 600;
  color: #4f46e5; 
  min-width: 150px; 
}

.value {
  font-weight: 400;
  color: #1e293b;
  word-wrap: break-word; 
}

#detailInstructions {
  list-style-type: disc;     
  padding-left: 100px;         
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#detailInstructions li {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.5;
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; 
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333;
}

.filter-group select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 150px;
}

.filter-group select:hover {
    border-color: #888;
}

.filter-group select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.exercise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
}

/* Different colors for different types */
.tag.muscle {
    background-color: #ff6b6b;
}

.tag.equipment {
    background-color: #4dabf7;
}

.tag.beginner {
    background-color: #51cf66; 
}

#muscleFilter {
    border: solid 1px #ff6b6b;
}

#equipmentFilter {
    border: solid 1px #4dabf7;
}

#beginnerFilter {
    border: solid 1px #51cf66;
}

.select-exercise {
    background-color: #999;
}

.select-exercise:hover {
    background-color: #555;
}

.loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #2563eb;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.contact-container {
  padding: 20px;
  border: 2px solid white;
  background-color: #ddd;
}
