:root {
  --background-color: #f5f5f5;
  --icon-color: white;
  --text-color: #2c3e50;
  --accent-color: #ff7043;
  --primary-color: #5d34cef9;

  /* Modern Font System with proper fallbacks to prevent CLS */
  --font-display:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing System */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Shadow System */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-accent: 0 4px 12px rgba(93, 52, 206, 0.25);

  /* Transition System */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* Font-face declarations with font-display: swap to prevent invisible text */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: local("Poppins");
  size-adjust: 100%;
  ascent-override: 90%;
  descent-override: 20%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("Inter");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

html {
  scroll-behavior: smooth;
}

/* Transitions only after page load - only GPU-composited properties */
.transitions-enabled * {
  transition:
    transform var(--transition-base),
    opacity var(--transition-base),
    box-shadow var(--transition-base) !important;
}

body {
  background-color: var(--background-color);
  background-image: url("pictures/layout5.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

h1 {
  font-family: var(--font-display);
  color: #1a202c;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-family: var(--font-display);
  color: #2d3748;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h3 {
  font-family: var(--font-display);
  color: #2d3748;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h4 {
  font-family: var(--font-display);
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

p {
  font-family: var(--font-body);
  color: #4a5568;
  line-height: 1.7;
  font-size: 0.9375rem;
  font-weight: 400;
  margin-bottom: var(--spacing-md);
}

/* Button Typography */
button {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Input Typography */
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
}

/* Label Typography */
label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: #4a5568;
}

/* App Description Section */
#app-description {
  max-width: 800px;
  margin: var(--spacing-2xl) auto;
  padding: var(--spacing-xl);
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(93, 52, 206, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

#about {
  max-width: 800px;
  margin: var(--spacing-2xl) auto;
  padding: var(--spacing-xl);
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  contain: content;
}

#about h2 {
  font-family: var(--font-display);
  color: #1a202c;
  text-align: center;
  margin-bottom: 24px;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
#userGreeting {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgb(20, 225, 9);
  margin-top: 40px;
  margin-bottom: 20px;
  display: block;
  text-align: center;
  letter-spacing: -0.01em;
  /* Prevent CLS by reserving minimum height */
  min-height: 2.5rem;
  line-height: 1.4;
}

#about p {
  font-family: var(--font-body);
  color: #2d3748;
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 400;
}

/* Main Container for Logged-in Users */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
}

/* Sections */
.content-section {
  display: none;
  /* Hide all sections by default */
  max-width: 800px;
  margin: var(--spacing-2xl) auto;
  padding: var(--spacing-xl);
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  /* Performance optimizations */
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
  contain: layout style paint;
}

.content-section.active {
  display: block;
  /* Show the active section */
}
#login-button {
  display: inline-block;
  width: auto;
  margin: var(--spacing-lg) auto;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #5d34cef9 0%, #4a28a8 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

#login-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a28a8 0%, #301e63f9 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#login-button:hover::before {
  opacity: 1;
}

#login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 52, 206, 0.4);
}

#login-button:active {
  transform: translateY(0);
}

#login-button span,
#login-button * {
  position: relative;
  z-index: 1;
}

#signup-button {
  display: inline-block;
  width: auto;
  margin: var(--spacing-lg) auto;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #5d34cef9 0%, #4a28a8 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

#signup-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a28a8 0%, #301e63f9 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#signup-button:hover::before {
  opacity: 1;
}

#signup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 52, 206, 0.4);
}

#signup-button:active {
  transform: translateY(0);
}

#signup-button span,
#signup-button * {
  position: relative;
  z-index: 1;
}

/* Login and Signup Sections */
#login-section,
#signup-section {
  margin: 40px auto;
  max-width: 90%;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  margin: var(--spacing-md) 0;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  background-color: #ffffff;
  color: #2d3748;
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: #5d34cef9;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(93, 52, 206, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.form-button {
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #5d34cef9 0%, #4a28a8 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: var(--spacing-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

.form-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a28a8 0%, #301e63f9 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.form-button:hover::before {
  opacity: 1;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 52, 206, 0.4);
}

.form-button:active {
  transform: translateY(0);
}

.form-button span,
.form-button * {
  position: relative;
  z-index: 1;
}

.password-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

/* Profile Section */
#profile-section {
  max-width: 90%;
  padding: 30px;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#profileInfo p {
  font-family: var(--font-body);
  margin: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.6;
}

#profilePhoto {
  margin-top: 10px;
  text-align: center;
}

#userPhoto {
  max-width: 10px;
  max-height: 10px;
  border-radius: 20%;
  margin-bottom: 20px;
}
.profile-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
  align-items: stretch;
}

.phone-input-container {
  position: relative;
}

.phone-input-container::before {
  content: "+91";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
}

.phone-input-container input {
  padding-left: 40px;
}

#uploadPhotoBtn,
#deletePhotoBtn,
#logoutBtn {
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  background: linear-gradient(135deg, #5d34cef9 0%, #4a28a8 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 120px;
  min-height: 50px;
  max-width: 160px;
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

#uploadPhotoBtn::before,
#deletePhotoBtn::before,
#logoutBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a28a8 0%, #301e63f9 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#uploadPhotoBtn:hover::before,
#deletePhotoBtn:hover::before,
#logoutBtn:hover::before {
  opacity: 1;
}

#uploadPhotoBtn:hover,
#deletePhotoBtn:hover,
#logoutBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 52, 206, 0.4);
}

#uploadPhotoBtn span,
#uploadPhotoBtn *,
#deletePhotoBtn span,
#deletePhotoBtn *,
#logoutBtn span,
#logoutBtn * {
  position: relative;
  z-index: 1;
}

/* Gym Search Section */
#gym-search-section {
  max-width: 90%;
  padding: 30px;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#location-selection,
#location-selection-class {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  align-items: stretch;
}

#use-current-location,
#use-current-location-class,
#enter-location,
#enter-location-class {
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  background: linear-gradient(135deg, #5d34cef9 0%, #4a28a8 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-accent);
  text-align: center;
  white-space: normal;
  min-width: 160px;
  min-height: 50px;
  flex: 1 1 auto;
  max-width: 220px;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#use-current-location::before,
#use-current-location-class::before,
#enter-location::before,
#enter-location-class::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a28a8 0%, #301e63f9 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#use-current-location:hover::before,
#use-current-location-class:hover::before,
#enter-location:hover::before,
#enter-location-class:hover::before {
  opacity: 1;
}

#use-current-location:hover,
#use-current-location-class:hover,
#enter-location:hover,
#enter-location-class:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 52, 206, 0.4);
}

#use-current-location:active,
#use-current-location-class:active,
#enter-location:active,
#enter-location-class:active {
  transform: translateY(0);
}

#use-current-location i,
#use-current-location-class i,
#enter-location i,
#enter-location-class i {
  margin-right: var(--spacing-sm);
}

#use-current-location span,
#use-current-location *,
#use-current-location-class span,
#use-current-location-class *,
#enter-location span,
#enter-location *,
#enter-location-class span,
#enter-location-class * {
  position: relative;
  z-index: 1;
}

#manual-location-input,
#manual-location-input-class {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#location-input,
#location-input-class {
  width: 80%;
  /* Reduced from 100% */
  max-width: 300px;
  /* Added max-width */
  padding: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

#location-input:focus,
#location-input-class:focus {
  outline: none;
  border-color: #5d34cef9;
  box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.1);
}

#submit-location,
#submit-location-class {
  width: 80%;
  /* Reduced from 100% */
  max-width: 300px;
  /* Added max-width */
  padding: 8px 16px;
  font-size: 14px;
  background-color: #5d34cef9;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#submit-location:hover,
#submit-location-class:hover {
  background-color: #301e63f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#submit-location:active,
#submit-location-class:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#gymList {
  max-width: 500px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

#gymItemsContainer {
  max-width: 500px;
  width: 100%;
  list-style-type: none;
  padding-left: 0;
  text-align: left;
  margin: 0 auto;
  border: 0.5px solid black;
  /* This centers the container if it's smaller than its parent */
}
#gym-list-section {
  margin: 0 auto;
  max-width: 90%;
  padding: 30px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#gym-list-section h2 {
  font-family: var(--font-display);
  color: #1a202c;
  margin-bottom: 25px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

#gymList {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0 auto;
  /* This centers the list if it's smaller than its container */
}

#gymList li {
  background-color: #ffffff;
  padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(93, 52, 206, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#gymList li:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: rgba(93, 52, 206, 0.2);
}

/* No Gyms Empty State */
.no-gyms-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
  text-align: center;
  max-width: 500px;
  margin: 40px auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.empty-state-icon i {
  font-size: 42px;
  color: #ffffff;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  letter-spacing: -0.025em;
}

.empty-state-message {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 360px;
}

.empty-state-suggestions {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 340px;
}

.empty-state-suggestions > p {
  font-weight: 600;
  color: #475569;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.empty-state-suggestions > p i {
  color: #f59e0b;
  font-size: 1rem;
}

.empty-state-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.empty-state-suggestions ul li {
  padding: 8px 0;
  color: #64748b;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.empty-state-suggestions ul li:last-child {
  border-bottom: none;
}

.empty-state-suggestions ul li::before {
  content: "•";
  color: #6366f1;
  font-weight: bold;
  font-size: 1.2rem;
}

.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.empty-state-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.empty-state-btn:active {
  transform: translateY(0);
}

.empty-state-btn i {
  font-size: 0.95rem;
}

/* Mobile responsiveness for empty state */
@media (max-width: 576px) {
  .no-gyms-empty-state {
    padding: 40px 24px;
    margin: 24px 16px;
  }

  .empty-state-icon {
    width: 80px;
    height: 80px;
  }

  .empty-state-icon i {
    font-size: 32px;
  }

  .empty-state-title {
    font-size: 1.5rem;
  }

  .empty-state-message {
    font-size: 0.95rem;
  }

  .empty-state-suggestions {
    padding: 16px 20px;
  }
}

/* Gym Card Styles */
.gym-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.gym-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

/* Gym Image Container */
.gym-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gym-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gym-card:hover .gym-photo {
  transform: scale(1.08);
}

/* Gym Content Wrapper */
.gym-content-wrapper {
  padding: var(--spacing-lg);
}

.gym-content-wrapper h3 {
  font-family: var(--font-display);
  margin: 0 0 var(--spacing-md) 0;
  font-size: 1.5rem;
  color: #1a202c;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.distance-input-wrapper {
  display: flex;
  align-items: center;
}

.distance-btn {
  width: 25px;
  height: 25px;
  background-color: #5d34cef9;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.distance-btn:hover {
  background-color: #301e63f9;
}

/* Trainers Wrapper - Inside Info Section */
.trainers-wrapper {
  margin-top: 12px;
  border-top: 1px solid rgba(93, 52, 206, 0.2);
  padding-top: 10px;
}

.trainers-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(93, 52, 206, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.trainers-toggle:hover {
  background: rgba(93, 52, 206, 0.15);
  transform: translateX(2px);
}

.trainers-toggle .toggle-text {
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #5d34cef9;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.trainers-toggle .toggle-text i {
  font-size: 14px;
}

.trainer-count-badge {
  font-family: var(--font-body);
  display: inline-block;
  background: #5d34cef9;
  color: white;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  letter-spacing: 0.02em;
}

.trainers-toggle .toggle-icon {
  font-size: 12px;
  color: #5d34cef9;
  transition: transform 0.3s ease;
}

.trainers-toggle .toggle-icon.rotated {
  transform: rotate(180deg);
}

.trainers-content {
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 5px 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar for trainers content */
.trainers-content::-webkit-scrollbar {
  width: 6px;
}

.trainers-content::-webkit-scrollbar-track {
  background: rgba(93, 52, 206, 0.05);
  border-radius: 3px;
}

.trainers-content::-webkit-scrollbar-thumb {
  background: rgba(93, 52, 206, 0.3);
  border-radius: 3px;
}

.trainers-content::-webkit-scrollbar-thumb:hover {
  background: rgba(93, 52, 206, 0.5);
}

/* OLD Trainers Container Styling - Keep for backward compatibility */
.trainers-container {
  margin-top: 20px;
  padding: 15px;
  border-top: 2px solid #5d34cef9;
  background: rgba(93, 52, 206, 0.03);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.trainers-container h4 {
  color: #5d34cef9;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trainers-container h4::before {
  content: "👥";
  font-size: 18px;
}

/* Custom scrollbar for trainers container */
.trainers-container::-webkit-scrollbar {
  width: 8px;
}

.trainers-container::-webkit-scrollbar-track {
  background: rgba(93, 52, 206, 0.1);
  border-radius: 4px;
}

.trainers-container::-webkit-scrollbar-thumb {
  background: rgba(93, 52, 206, 0.4);
  border-radius: 4px;
}

.trainers-container::-webkit-scrollbar-thumb:hover {
  background: rgba(93, 52, 206, 0.6);
}

/* Empty trainers state */
.no-trainers-message {
  text-align: center;
  padding: 20px;
  color: #888;
  font-style: italic;
  font-size: 14px;
}

/* Trainer Item Card */
.trainer-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
}

.trainer-item:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border: 2px solid rgba(93, 52, 206, 0.2);
}

.trainer-item.selected {
  border: 2px solid #5d34cef9;
  background: linear-gradient(
    135deg,
    rgba(93, 52, 206, 0.12),
    rgba(93, 52, 206, 0.04)
  );
  box-shadow: var(--shadow-md);
}

.trainer-item:last-child {
  margin-bottom: 0;
}

/* Trainer Photo */
.trainer-photo {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
  cursor: pointer;
  border: 2.5px solid #5d34cef9;
  transition: all var(--transition-base);
  background: white;
  box-shadow: var(--shadow-sm);
}

.trainer-photo:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-accent);
  border-width: 3px;
}

/* Trainer Info */
.trainer-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.trainer-info .trainer-name {
  font-family: var(--font-body);
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 3px 0;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.trainer-info .trainer-specialization {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: #718096;
  margin: 0 0 3px 0;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-info .trainer-fees {
  font-family: var(--font-body);
  font-weight: 700;
  color: #5d34cef9;
  margin: 0;
  font-size: 0.8125rem;
}

/* Trainer Buttons Container */
.trainer-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 75px;
}

/* Trainer Select Button */
.select-trainer-btn,
.unselect-trainer-btn {
  font-family: var(--font-body);
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.select-trainer-btn::before,
.unselect-trainer-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.select-trainer-btn {
  background: linear-gradient(135deg, #5d34cef9, #4a28a8);
  color: white;
  box-shadow: var(--shadow-sm);
}

.select-trainer-btn::before {
  background: linear-gradient(135deg, #4a28a8, #301e63f9);
}

.select-trainer-btn:hover::before {
  opacity: 1;
}

.select-trainer-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-accent);
}

.unselect-trainer-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  box-shadow: var(--shadow-sm);
}

.unselect-trainer-btn::before {
  background: linear-gradient(135deg, #d63031, #c92a2a);
}

.unselect-trainer-btn:hover::before {
  opacity: 1;
}

.unselect-trainer-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(214, 48, 49, 0.4);
}

.select-trainer-btn:disabled,
.unselect-trainer-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.select-trainer-btn span,
.select-trainer-btn *,
.unselect-trainer-btn span,
.unselect-trainer-btn * {
  position: relative;
  z-index: 1;
}

/* Selected Trainer Badge */
.selected-badge {
  font-family: var(--font-body);
  display: inline-block;
  background-color: #00b894;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-left: 8px;
  text-transform: uppercase;
  /* Removed infinite animation for performance */
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive Design for Trainers */
@media (max-width: 480px) {
  .trainer-item {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    gap: 8px;
    padding: 8px;
  }

  .trainer-photo {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .trainer-info {
    flex: 1;
    min-width: 100px;
  }

  .trainer-info .trainer-name {
    font-size: 12px;
  }

  .trainer-info .trainer-specialization {
    font-size: 10px;
  }

  .trainer-info .trainer-fees {
    font-size: 11px;
  }

  .trainer-buttons {
    flex-direction: row;
    width: 100%;
    min-width: auto;
    gap: 6px;
  }

  .select-trainer-btn,
  .unselect-trainer-btn {
    flex: 1;
    padding: 5px 8px;
    font-size: 10px;
  }

  .trainers-content {
    max-height: 250px;
  }

  .trainers-toggle {
    padding: 6px 8px;
  }

  .trainers-toggle .toggle-text {
    font-size: 12px;
  }

  .trainer-count-badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* Responsive Date Selection for Book a Class - Mobile */
  #date-selection {
    gap: 4px;
    padding: 6px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .date-button {
    min-width: auto;
    flex: 0 1 auto;
    padding: 5px 6px;
    font-size: 10px;
    border-radius: 6px;
    white-space: nowrap;
    border-width: 1px;
  }

  .date-button.selected {
    padding: 5px 6px;
    border-width: 1px;
  }

  .switch {
    width: 55px;
    height: 28px;
    margin-left: 4px;
  }
}

/* Extra small screens - 360px and below */
@media (max-width: 360px) {
  #date-selection {
    gap: 3px;
    padding: 5px;
    flex-wrap: nowrap;
  }

  .date-button {
    padding: 4px 5px;
    font-size: 9px;
    border-radius: 5px;
    border-width: 1px;
  }

  .date-button.selected {
    padding: 4px 5px;
    border-width: 1px;
  }

  .switch {
    width: 36px;
    height: 18px;
    margin-left: 2px;
  }

  .slider:before {
    height: 14px;
    width: 14px;
  }

  input:checked + .slider:before {
    transform: translateX(18px);
  }
}

@media (max-width: 480px) {
  .slider:before {
    height: 20px;
    width: 20px;
  }

  input:checked + .slider:before {
    transform: translateX(27px);
  }

  .morning-icon,
  .evening-icon {
    font-size: 9px;
  }

  .morning-icon {
    left: 6px;
  }

  .evening-icon {
    right: 6px;
  }
}

#maxDistance {
  width: 50px;
  text-align: center;
  margin: 0 10px;
}

#maxDistance::-webkit-inner-spin-button,
#maxDistance::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.view-on-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background-color: #48bb78;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 20px 0 20px;
  box-shadow: 0 2px 6px rgba(72, 187, 120, 0.3);
}

.view-on-map:hover {
  background-color: #38a169;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(72, 187, 120, 0.5);
  text-decoration: none;
  color: white;
}

.view-on-map i {
  margin-right: 8px;
  font-size: 14px;
}

.booking-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.booking-tabs button {
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0 var(--spacing-sm);
  border: 2px solid transparent;
  background-color: #f7fafc;
  cursor: pointer;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: #4a5568;
  transition: all var(--transition-base);
}

.booking-tabs button:hover {
  background-color: #edf2f7;
  transform: translateY(-1px);
}

.booking-tabs button.active {
  background: linear-gradient(135deg, #5d34cef9, #4a28a8);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.booking-item {
  border: 1px solid rgba(93, 52, 206, 0.1);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.booking-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(93, 52, 206, 0.2);
}
#confirmBookingBtn:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

.payment-options {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}

.payment-option {
  flex: 1 0 40%;
  text-align: center;
  padding: 15px;
  margin: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333;
  transition: all 0.3s ease;
}

.payment-option:hover {
  background-color: #e9e9e9;
  transform: translateY(-2px);
}
.book-button {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #5d34cef9 0%, #4a28a8 100%);
  color: white;
  padding: 16px 28px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: var(--spacing-md);
  width: calc(100% - var(--spacing-2xl));
  margin-left: var(--spacing-lg);
  margin-right: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

.book-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a28a8 0%, #301e63f9 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.book-button:hover::before {
  opacity: 1;
}

.book-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(93, 52, 206, 0.5);
}

.book-button:active {
  transform: translateY(0);
}

.book-button:disabled {
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.book-button span,
.book-button * {
  position: relative;
  z-index: 1;
}
#sortOption {
  font-family: var(--font-body);
  padding: 12px 35px 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2d3748;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235d34ce%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 10px auto;
}

#sortOption:hover {
  border-color: #aaa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#sortOption:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Style for the container of the sort option */
.sort-container {
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}

/* Label for the sort option */
.sort-label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #2d3748;
  margin-right: 10px;
  letter-spacing: 0.01em;
}

/* Large screens - better button widths */
@media (min-width: 769px) {
  #use-current-location,
  #use-current-location-class,
  #enter-location,
  #enter-location-class {
    flex: 0 1 auto;
    max-width: 200px;
  }

  #uploadPhotoBtn,
  #deletePhotoBtn,
  #logoutBtn {
    flex: 0 1 auto;
    max-width: 150px;
  }
}

/* Responsive Typography for Mobile */
@media (max-width: 768px) {
  /* Scale down headings for mobile */
  h1 {
    font-size: 1.75rem;
    letter-spacing: -0.015em;
    margin-bottom: var(--spacing-md);
  }

  h2 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
  }

  h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
  }

  h4 {
    font-size: 1.125rem;
  }

  body {
    font-size: 0.9375rem;
  }

  p {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
  }

  /* Mobile padding adjustments */
  .content-section {
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) auto;
    max-width: 95%;
  }

  #app-description,
  #about {
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) auto;
    max-width: 95%;
  }

  #login-section,
  #signup-section,
  #profile-section,
  #gym-search-section,
  #workout-tracking-section,
  #book-class-section,
  #feedback-section,
  #acknowledgments-section,
  #virtual-guide-section,
  #terms-section {
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) auto;
    max-width: 95%;
  }

  .container {
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .features-grid {
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .feature-icon {
    padding: var(--spacing-sm);
  }

  /* Adjust specific mobile elements */
  #userGreeting {
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }

  #about h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
  }

  #gym-list-section h2 {
    font-size: 1.5rem;
  }

  .gym-content-wrapper {
    padding: var(--spacing-md);
  }

  .gym-content-wrapper h3 {
    font-size: 1.25rem;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .section-header h3 {
    font-size: 1.25rem;
  }

  .top-bar h1 {
    font-size: 1.5rem;
  }

  .booking-summary h3 {
    font-size: 1.5rem;
  }

  .booking-price p {
    font-size: 1.75rem;
  }

  .gym-price strong {
    font-size: 1.5rem;
  }

  .summary-value {
    font-size: 1.5rem;
  }

  .feature-icon span {
    font-size: 0.8125rem;
  }

  .menu-item span {
    font-size: 0.6875rem;
  }
  .menu-item i {
    font-size: 1.55em;
  }

  /* Button adjustments for mobile */
  .form-button,
  #login-button,
  #signup-button {
    font-size: 0.9375rem;
    padding: 12px 20px;
  }

  .book-button {
    font-size: 0.9375rem;
    padding: 12px 20px;
  }

  #payButton {
    font-size: 1rem;
    padding: 14px 18px;
  }

  /* Form inputs for mobile */
  .form-input,
  input,
  select,
  textarea {
    font-size: 1rem; /* 16px to prevent zoom on iOS */
    padding: 12px 16px;
  }

  /* Question/Answer sections */
  .question {
    font-size: 0.875rem;
    padding: var(--spacing-md);
  }

  .answer {
    font-size: 0.875rem;
    padding: var(--spacing-md);
  }

  /* Sort option */
  #sortOption {
    width: 100%;
    max-width: 300px;
    font-size: 0.875rem;
    padding: 10px 35px 10px 14px;
  }

  /* Calendar */
  #currentMonthYear {
    font-size: 1.125rem;
  }

  #bookings-list h4 {
    font-size: 1.125rem;
  }

  /* Cards and spacing */
  .booking-item,
  .acknowledgment-item,
  .class-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  #gymList li {
    margin-bottom: var(--spacing-md);
  }

  /* Responsive Date Selection for Book a Class - Tablet */
  #date-selection {
    gap: 6px;
    padding: 10px 8px;
    justify-content: space-between;
  }

  .date-button {
    min-width: 70px;
    padding: 10px 8px;
    font-size: 11px;
    border-radius: 8px;
    flex-shrink: 1;
  }

  .date-button.selected {
    padding: 10px 8px;
  }

  .switch {
    width: 60px;
    height: 30px;
    margin-left: 8px;
  }

  .slider:before {
    height: 22px;
    width: 22px;
  }

  input:checked + .slider:before {
    transform: translateX(30px);
  }

  .morning-icon,
  .evening-icon {
    font-size: 11px;
  }

  .morning-icon {
    left: 7px;
  }

  .evening-icon {
    right: 7px;
  }

  .trainer-item {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }

  .trainer-photo {
    width: 45px;
    height: 45px;
    min-width: 45px;
  }

  /* Location buttons responsive */
  #location-selection,
  #location-selection-class {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  #use-current-location,
  #use-current-location-class,
  #enter-location,
  #enter-location-class {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    font-size: 0.875rem;
    padding: 14px 16px;
    margin-bottom: var(--spacing-sm);
    flex: none;
  }

  #use-current-location:last-child,
  #use-current-location-class:last-child,
  #enter-location:last-child,
  #enter-location-class:last-child {
    margin-bottom: 0;
  }

  /* Profile buttons responsive */
  .profile-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  #uploadPhotoBtn,
  #deletePhotoBtn,
  #logoutBtn {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    flex: none;
  }

  #uploadPhotoBtn:last-child,
  #deletePhotoBtn:last-child,
  #logoutBtn:last-child {
    margin-bottom: 0;
  }
}

/* Medium screens (tablets) - keep some side by side */
@media (min-width: 481px) and (max-width: 768px) {
  #location-selection,
  #location-selection-class {
    gap: var(--spacing-sm);
  }

  #use-current-location,
  #use-current-location-class,
  #enter-location,
  #enter-location-class {
    flex: 1 1 calc(50% - var(--spacing-sm));
    min-width: 150px;
    max-width: 48%;
  }

  .profile-buttons {
    gap: var(--spacing-sm);
  }

  #uploadPhotoBtn,
  #deletePhotoBtn {
    flex: 1 1 calc(50% - var(--spacing-sm));
    min-width: 120px;
    max-width: 48%;
  }

  #logoutBtn {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  /* Extra small screens - even more compact */
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  /* Additional mobile padding */
  .content-section,
  #app-description,
  #about,
  #login-section,
  #signup-section,
  #profile-section,
  #gym-search-section,
  #workout-tracking-section,
  #book-class-section,
  #feedback-section,
  #acknowledgments-section,
  #virtual-guide-section,
  #terms-section {
    padding: var(--spacing-md);
    margin: var(--spacing-md) auto;
  }

  .container {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }

  .features-grid {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }

  #userGreeting {
    font-size: 1.375rem;
    margin-top: var(--spacing-md);
  }

  #about h2 {
    font-size: 1.5rem;
  }

  .booking-price p {
    font-size: 1.5rem;
  }

  .gym-price strong {
    font-size: 1.375rem;
  }

  .top-bar h1 {
    font-size: 1.375rem;
  }

  .dashboard-title {
    font-size: 1.75rem;
  }

  .gym-content-wrapper {
    padding: var(--spacing-md);
  }

  .booking-item,
  .acknowledgment-item,
  .class-item {
    padding: var(--spacing-md);
  }

  /* Ensure buttons stay stacked on small screens */
  #location-selection,
  #location-selection-class {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  #use-current-location,
  #use-current-location-class,
  #enter-location,
  #enter-location-class {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding: 14px 16px;
    margin-bottom: var(--spacing-sm);
    flex: none;
  }

  .profile-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  #uploadPhotoBtn,
  #deletePhotoBtn,
  #logoutBtn {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding: 14px 16px;
    margin-bottom: var(--spacing-sm);
    flex: none;
  }
}
/* QR Code Section */
#qr-code-section {
  margin: 40px auto;
  max-width: 90%;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#qrcode {
  text-align: center;
  margin-top: 20px;
}

#qrInfo {
  margin-top: 20px;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* QR Code Container in Bookings */
.qr-code-container {
  margin: 15px 0;
  text-align: center;
}

.qr-code {
  display: inline-block;
  padding: 10px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qr-code:hover {
  box-shadow: 0 4px 12px rgba(93, 52, 206, 0.15);
  transform: scale(1.02);
}

.qr-code img {
  display: block;
  border-radius: 0 !important;
}

.enlarge-qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #5d34ce 0%, #7c4dff 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(93, 52, 206, 0.3);
}

.enlarge-qr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 52, 206, 0.4);
}

.enlarge-qr-btn i {
  font-size: 16px;
}

/* QR Code Modal */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* GPU acceleration */
  transform: translateZ(0);
  will-change: opacity;
}

.qr-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.qr-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: calc(100% - 2cm);
  margin: 0 1cm;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  /* GPU acceleration for when animation is used */
  transform: translateZ(0);
  will-change: transform, opacity;
}

.qr-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.qr-modal-close:hover {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  transform: rotate(90deg);
}

.qr-modal-header {
  text-align: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.qr-modal-header h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #5d34ce;
  font-weight: 600;
}

.qr-modal-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.qr-modal-body {
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

#qrModalCode {
  display: inline-block;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#qrModalCode img {
  display: block;
  border-radius: 0 !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.qr-modal-footer {
  padding: 20px 30px 30px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.qr-modal-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 20px;
  background: #fff3cd;
  color: #856404;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid #ffeeba;
}

.qr-modal-info i {
  font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design for QR Modal */
@media (max-width: 768px) {
  .qr-modal-content {
    margin: 0 0.5cm;
    max-width: calc(100% - 1cm);
  }

  .qr-modal-header {
    padding: 20px 20px 15px;
  }

  .qr-modal-header h3 {
    font-size: 20px;
  }

  .qr-modal-header p {
    font-size: 13px;
  }

  .qr-modal-body {
    padding: 30px 15px;
  }

  #qrModalCode {
    padding: 15px;
  }

  /* Adjust QR code size for mobile */
  #qrModalCode img {
    max-width: 100%;
    height: auto !important;
  }

  .qr-modal-footer {
    padding: 15px 20px 20px;
  }

  .qr-modal-info {
    font-size: 12px;
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .qr-modal-content {
    margin: 0 0.3cm;
    max-width: calc(100% - 0.6cm);
  }

  .enlarge-qr-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* Prevent QR code image interpolation for crisp edges */
.qr-code img,
#qrModalCode img {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}
.cancel-booking-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ff7043;
  /* Using the accent color defined in :root */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.cancel-booking-btn:hover {
  background-color: #e64a19;
  /* A darker shade of the accent color */
}
/* Feedback Section */
#feedback-section {
  margin: 40px auto;
  max-width: 90%;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.star-rating {
  display: inline-block;
  font-size: 0;
  margin-bottom: 15px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  float: right;
  padding: 5px;
  font-size: 20px;
  color: black;
  transition: all 0.2s ease;
}

.star-rating input:checked ~ label {
  color: red;
}
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ff8c00;
  transform: rotate(360deg) scale(1.2);
}

/* Acknowledgments Section */
#acknowledgments-section {
  margin: 40px auto;
  max-width: 90%;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.acknowledgment-item {
  max-width: 500px;
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(93, 52, 206, 0.1);
  transition: all var(--transition-base);
}

.acknowledgment-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.acknowledgment-item h3 {
  font-family: var(--font-display);
  color: #1a202c;
  margin-top: 0;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.acknowledgment-item p {
  font-family: var(--font-body);
  color: #4a5568;
  margin: 10px 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 400;
}

.close-ack-btn {
  display: block;
  margin: 10px auto;
  padding: 5px 8px;
  background-color: #5d34cef9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.close-ack-btn:hover {
  background-color: #301e63f9;
}

/* Virtual Guide Section */
#virtual-guide-section {
  margin: 40px auto;
  max-width: 90%;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.virtual-guide-intro {
  font-family: var(--font-body);
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: center;
}

.virtual-guide-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.video-card {
  cursor: pointer;
  transition: all var(--transition-base);
}

.video-card:hover {
  transform: scale(1.05);
}

.video-thumbnail {
  background: linear-gradient(135deg, #5d34ce 0%, #7c5de8 100%);
  border-radius: 12px;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 120px;
  box-shadow: 0 4px 15px rgba(93, 52, 206, 0.3);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.video-thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-thumbnail::before {
  opacity: 1;
}

.video-thumbnail:hover {
  box-shadow: 0 8px 25px rgba(93, 52, 206, 0.4);
}

.video-thumbnail i {
  font-size: 2.5rem;
  color: white;
  opacity: 0.95;
  transition: transform 0.3s ease;
  z-index: 1;
}

.video-card:hover .video-thumbnail i {
  transform: scale(1.15);
}

.video-thumbnail span {
  font-family: var(--font-body);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  z-index: 1;
}

/* Video Player Modal */
.video-modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.video-modal-content {
  position: relative;
  background: #1a1a2e;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: videoModalSlideIn 0.3s ease-out;
}

@keyframes videoModalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.video-modal-header {
  padding: 20px 60px 15px 20px;
  background: linear-gradient(135deg, #5d34ce 0%, #7c5de8 100%);
}

.video-modal-header h3 {
  margin: 0;
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.video-modal-body {
  padding: 0;
  background: #000;
}

.video-modal-body video {
  width: 100%;
  max-height: 70vh;
  display: block;
}

@media (max-width: 600px) {
  #virtual-guide-section {
    padding: 20px;
    margin: 20px auto;
  }

  .virtual-guide-videos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .video-thumbnail {
    padding: 20px 10px;
    min-height: 100px;
  }

  .video-thumbnail i {
    font-size: 2rem;
  }

  .video-thumbnail span {
    font-size: 0.8rem;
  }

  .video-modal-content {
    width: 95%;
    border-radius: 12px;
  }

  .video-modal-header {
    padding: 15px 50px 12px 15px;
  }

  .video-modal-header h3 {
    font-size: 1rem;
  }

  .video-modal-close {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
}

/* Custom Dialog */
.custom-dialog {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.dialog-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
}

#dialogOkButton {
  margin-top: 15px;
}
#dialogCancelButton {
  background-color: #f44336;
  margin-left: 10px;
}

/* Terms and Conditions Section */
#terms-section {
  max-width: 90%;
  padding: 30px;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.terms-container {
  margin-top: 10px;
  margin-bottom: 10px;
}

#termsLink {
  color: #3498db;
  text-decoration: underline;
  cursor: pointer;
}

#termsContent {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

#acceptTerms {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #5d34cef9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    flex-basis: 100%;
  }

  .content-section {
    padding: 20px;
  }
}

/* Spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #5d34cef9;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  /* GPU acceleration */
  transform: translateZ(0);
  will-change: transform;
}

/* Footer Section */
footer {
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  color: white;
  margin-bottom: 100px;
}

footer p {
  font-family: var(--font-body);
  color: white;
  margin-top: 200px;
  font-weight: 500;
  font-size: 0.9375rem;
}
.footer-text {
  margin-top: 20px;
}

.footer-text .made-with {
  font-family: var(--font-body);
  margin: 5px 0 0 0;
  font-size: 1rem;
  font-weight: 500;
}

.footer-text .location {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 5px;
}

.footer-text .location .namma {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin-top: 5px;
  color: yellow;
  letter-spacing: -0.01em;
}

.footer-text .location .bengaluru {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin-top: 5px;
  color: red;
  letter-spacing: -0.01em;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 100px;
}

.social-links a {
  color: red;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links a i {
  font-size: 24px;
  line-height: 1;
}

.social-links a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

#menu-toggle {
  position: fixed;
  top: 10px;
  right: 20px;
  cursor: pointer;
  z-index: 1000;
  width: 25px; /* Set the container width to match the image */
  height: 25px; /* Set the container height to match the image */
}

#menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* This makes the image circular */
  object-fit: cover; /* This ensures the image fills the circle nicely */
}

#sliding-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: rgb(217, 220, 242);
  transition: 0.3s;
  z-index: 999;
}

#sliding-menu.open {
  right: 0;
}

#sliding-menu ul {
  list-style-type: none;
  padding: 0;
  margin-top: 60px;
}
#sliding-menu ul li {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2d3748;
  transition: all 0.2s ease;
}
#sliding-menu ul li i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
#sliding-menu ul li:hover {
  background-color: #e0e0e0;
}

#menu-toggle.open .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

#menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle.open .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.feature-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: var(--spacing-md);
  background-color: transparent;
  border-radius: var(--radius-md);
  position: relative;
  will-change: transform;
}

.feature-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: rgba(93, 52, 206, 0.05);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-icon:hover::before {
  opacity: 1;
}

.feature-icon i {
  font-size: 1.7em;
  width: 40px;
  height: 40px;
  margin-bottom: var(--spacing-sm);
  color: #6200ee;
  background: linear-gradient(
    135deg,
    rgba(217, 220, 242, 0.9),
    rgba(217, 220, 242, 0.7)
  );
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.feature-icon:hover {
  transform: translateY(-6px);
}

.feature-icon:hover i {
  background: linear-gradient(135deg, #5d34cef9, #7c5ce6);
  color: white;
  box-shadow: var(--shadow-accent);
  transform: scale(1.08);
}

.feature-icon:active {
  transform: translateY(-2px);
}

.feature-icon span {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-top: var(--spacing-xs);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  transition: color var(--transition-base);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  /* Prevent CLS by containing layout */
  contain: layout style;
}
#sliding-menu .submenu {
  display: none;
  border-top: 1px solid #ccc;
  list-style-type: none;
  margin-top: 10px;
}

#sliding-menu .submenu li {
  border-bottom: none;
  padding: 5px 0;
  padding-left: 20px;
  border-bottom: 1px solid #ccc;
}
#sliding-menu .submenu li:last-child {
  border-bottom: none;
}

#sliding-menu .submenu li i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

#sliding-menu ul li#menu-contact-us {
  flex-direction: column;
  align-items: flex-start;
}

#sliding-menu ul li#menu-contact-us > i {
  margin-right: 10px;
}
#sliding-menu li:hover {
  background-color: #f0f0f0;
}

#sliding-menu ul li#menu-contact-us > span {
  display: flex;
  align-items: center;
}

#sliding-menu ul li#menu-contact-us > span > i {
  margin-right: 10px;
}

#sliding-menu ul li#menu-profile {
  display: flex;
  align-items: center;
}
#sliding-menu .submenu li:hover {
  background-color: #f0f0f0;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  background-color: #ccc;
}

.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(217, 220, 242, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2px 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-top: 1px solid rgba(93, 52, 206, 0.1);
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.menu-item::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-md);
  background: rgba(93, 52, 206, 0.1);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.menu-item:hover::before {
  opacity: 1;
}

.menu-item:active {
  transform: scale(0.95);
}

.menu-item i {
  font-size: 1.5em;
  color: #5d34cef9;
  transition: all var(--transition-base);
}

.menu-item:hover i {
  color: #4a28a8;
  transform: scale(1.1);
}

.menu-item span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: var(--spacing-xs);
  color: #2d3748;
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.menu-item:hover span {
  color: #5d34cef9;
}
.faq-item {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.question {
  background-color: #f6f6f6;
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #2d3748;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.question:hover {
  background-color: #e9e9e9;
}

.answer {
  padding: 12px 16px;
  display: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: #4a5568;
}

.faq-item.active .answer {
  display: block;
}

.question::after {
  content: "\25BC";
  float: right;
  transition: transform 0.3s ease;
}

.faq-item.active .question::after {
  transform: rotate(180deg);
}
#workout-tracking-section {
  max-width: 90%;
  padding: 30px;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#menu-notifications,
#menu-loyalty {
  display: flex;
  align-items: center;
}

#calendar-container {
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
}
#calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
#calendar-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  table-layout: fixed;
}

#calendar-table th,
#calendar-table td {
  border: 1px solid #e9e9e9;
  text-align: center;
  padding: 8px;
  width: 14.28%;
  height: 40px;
  position: relative;
  vertical-align: middle;
}

#calendar-table thead {
  background-color: #5d34ce;
  color: white;
}

#calendar-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

#calendar-table td span {
  display: inline-block;
  width: 100%;
  height: 100%;
  line-height: 1;
}

#calendar-table td::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  z-index: -1;
  align-items: center;
}
#calendar-table td.current-date {
  color: #5d34cef9;
  font-weight: bold;
  background-color: #f0f0ff;
}

#calendar-table td.check-in-date {
  color: green;
  background-color: #e8f5e9;
}

#calendar-table td.past-no-checkin {
  color: red;
  background-color: #ffebee;
}

#prev-month,
#next-month {
  background-color: #5d34cef9;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 10px;
}

#prev-month:hover,
#next-month:hover {
  background-color: #301e63f9;
}
#book-class-section {
  max-width: 500px;
  padding: 30px;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  overflow: visible;
}

@media (max-width: 480px) {
  #book-class-section {
    padding: 20px 12px;
    margin: 20px 8px;
    border-radius: 10px;
  }
}

/* Book a Class - Date Selection & Toggle */
#date-selection {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 10px 8px;
  background: #f8f9fa;
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.date-button {
  padding: 8px 12px;
  background-color: white;
  color: #2d3748;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex: 0 1 auto;
  min-width: auto;
  text-align: center;
  white-space: nowrap;
}

.date-button:hover {
  background-color: #f7fafc;
  color: #5d34ce;
  border-color: #5d34ce;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(93, 52, 206, 0.15);
}

.date-button.selected {
  padding: 8px 12px;
  background: linear-gradient(135deg, #5d34ce, #7c4dff);
  color: white;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 12px rgba(93, 52, 206, 0.3);
  transform: translateY(-1px);
}

/* Day/Night Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 38px;
  flex-shrink: 0;
  margin-left: auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffd89b 0%, #ff8c42 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

input:checked + .slider:before {
  transform: translateX(42px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.morning-icon,
.evening-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.morning-icon {
  left: 10px;
  color: #ff6b35;
  opacity: 1;
}

.evening-icon {
  right: 10px;
  color: #e2e8f0;
  opacity: 0.6;
}

input:checked ~ .slider .morning-icon {
  opacity: 0.4;
  color: #cbd5e0;
}

input:checked ~ .slider .evening-icon {
  opacity: 1;
  color: #f7fafc;
}

/* Class Items */
.class-item {
  background-color: white;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(93, 52, 206, 0.1);
  transition: all var(--transition-base);
}

.class-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(93, 52, 206, 0.2);
}

#time-filter {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Image Slider */
.image-slider img {
  transition: transform 0.3s ease-in-out;
}

.image-slider img.clicked {
  transform: scale(1.1);
}

/* Quote Container */
#quote-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  z-index: 1000;
}

#quote-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(12, 239, 35, 0.945);
}
.booking-type-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.booking-type-tabs button {
  padding: 5px 10px;
  margin: 0 5px;
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
}

.booking-type-tabs button.active {
  background-color: #5d34cef9;
  color: white;
}
.image-slider {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 15px;
  cursor: grab;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS devices */
  display: flex;
  justify-content: center; /* Center the slider-container */
}

.image-slider.active {
  cursor: grabbing;
}

.slider-container {
  display: flex;
  padding: 10px 0;
  gap: 7px; /* Adds space between images */
  margin: 0 auto; /* Centers the container if it's smaller than the slider */
}

.slider-container img {
  width: 150px;
  height: 110px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 15px;
  /* Prevent CLS with explicit aspect ratio */
  aspect-ratio: 150 / 110;
  background-color: #e2e8f0;
  content-visibility: auto;
}

/* Optional: Hide scrollbar for cleaner look */
.image-slider::-webkit-scrollbar {
  display: none;
}

.image-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* Trainer Dashboard Styles */
#trainer-dashboard {
  max-width: 1000px;
  margin: 0 auto;
  padding: 25px;
  font-family: var(--font-body);
  color: #2d3748;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-title {
  font-family: var(--font-display);
  text-align: center;
  color: #1a202c;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 25px;
  border-bottom: 2px solid #5d34ce;
  padding-bottom: 15px;
}

/* Dashboard Sections */
.dashboard-section {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
  /* Removed animation for better performance */
}

.dashboard-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.section-header {
  background-color: #5d34ce;
  color: white;
  padding: 15px 20px;
}

.section-header h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-content {
  padding: 25px;
}

/* Trainer Info Styles */
#trainerInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trainer-details {
  width: 100%;
  max-width: 600px;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.info-label {
  font-family: var(--font-body);
  width: 140px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #4a5568;
  letter-spacing: 0.01em;
}

.info-value {
  font-family: var(--font-body);
  flex: 1;
  color: #2d3748;
  font-size: 0.9375rem;
  font-weight: 500;
}

.edit-field {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Action Buttons */
#trainerActions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

#trainerActions button {
  padding: 10px 20px;
  border-radius: 4px;
}

#editInfoBtn {
  background-color: #5d34ce;
}

#saveInfoBtn {
  background-color: #4caf50;
}

#cancelEditBtn {
  background-color: #f44336;
}

#trainerLogoutBtn {
  background-color: #e74c3c;
}

/* Earnings Section */
.date-filter {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
}

#earnings-start-date,
#earnings-end-date {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.earnings-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  flex: 1;
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #718096;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #5d34ce;
  letter-spacing: -0.02em;
}
.earnings-table-container,
.fee-history-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}
/* Tables */
#earnings-table,
#fee-history-table {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse;
}

#earnings-table th,
#earnings-table td,
#fee-history-table th,
#fee-history-table td {
  font-family: var(--font-body);
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 0.9375rem;
}

#earnings-table th,
#fee-history-table th {
  background-color: #f2f2f2;
  color: #1a202c;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#earnings-table td,
#fee-history-table td {
  color: #2d3748;
  font-weight: 500;
}

#earnings-table tr:hover,
#fee-history-table tr:hover {
  background-color: #f9f9f9;
}
.earnings-table-container::-webkit-scrollbar-track,
.fee-history-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.earnings-table-container::-webkit-scrollbar-thumb,
.fee-history-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.earnings-table-container::-webkit-scrollbar-thumb:hover,
.fee-history-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Host Class Form */
#host-class-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-family: var(--font-body);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #2d3748;
  letter-spacing: 0.01em;
}

.full-width {
  grid-column: span 2;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #5d34ce;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #4a2ba3;
}

/* Schedule Section */
#schedule-calendar {
  margin-bottom: 20px;
}

/* Improved Mobile Responsiveness */
@media (max-width: 768px) {
  #host-class-form {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }

  .date-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  #earnings-start-date,
  #earnings-end-date {
    width: 100%;
  }

  .earnings-summary {
    flex-direction: column;
  }

  .summary-card {
    margin-bottom: 15px;
  }

  #trainerActions {
    flex-direction: column;
    gap: 10px;
  }

  #trainerActions button {
    width: 100%;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stylish navigation buttons */
#viewProfileBtn,
#viewEarningsBtn {
  background-color: #5d34ce;
  color: white;
  padding: 12px 20px;
  margin: 0 10px 20px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#viewProfileBtn:hover,
#viewEarningsBtn:hover {
  background-color: #4a2ba3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Tab Buttons in Trainer Dashboard */
.tab-btn {
  padding: 12px 20px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  margin-right: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #333;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.tab-btn.active {
  background-color: #5d34ce;
  color: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #4a2ba3;
}

.proposals-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Tables in proposals section */
.proposals-content {
  margin-top: 15px;
}

#pendingProposalsList,
#approvedClassesList {
  width: 100%;
  overflow-x: auto;
}

.proposals-table th,
.classes-table th {
  background-color: #5d34ce;
  color: white;
  padding: 12px 15px;
  text-align: left;
}

.proposals-table tr:nth-child(even),
.classes-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.proposals-table tr:hover,
.classes-table tr:hover {
  background-color: #f1f1f1;
}
/* Schedule Calendar Styling */
#schedule-calendar {
  margin: 10px 0; /* Reduced from 20px */
  width: 100%;
  max-width: 700px; /* Add maximum width to make it more contained */
  margin-left: auto;
  margin-right: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.9em; /* Make font slightly smaller */
}

.calendar-table thead {
  background-color: #5d34ce;
  color: white;
}

.calendar-table th {
  padding: 8px; /* Reduced from 12px */
  text-align: center;
  font-weight: 500;
}

.calendar-table td {
  padding: 6px; /* Reduced from 10px */
  text-align: center;
  border: 1px solid #e9e9e9;
  position: relative;
  height: 32px; /* Reduced from 40px */
}

/* Style for days with bookings */
.calendar-table td.has-bookings {
  background-color: #d1c4e9; /* Light purple background */
  color: #5d34ce;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-table td.has-bookings:hover {
  background-color: #b39ddb; /* Darker purple on hover */
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Remove the booking count badge */
.calendar-table td.has-bookings::after {
  display: none; /* This removes the blue dots/booking count badges */
}
/* Calendar navigation */
#calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#prevMonth,
#nextMonth {
  background-color: #5d34ce;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#prevMonth:hover,
#nextMonth:hover {
  background-color: #4a2ba3;
}

#currentMonthYear {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.01em;
}

/* Today's date highlight */
.calendar-table td.today {
  background-color: #fff3e0;
  border: 2px solid #ff9800;
}

/* Styling for days from another month */
.calendar-table td.other-month {
  color: #ccc;
}

/* Bookings list display */
#bookings-list {
  margin-top: 20px;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#bookings-list h4 {
  font-family: var(--font-display);
  margin-top: 0;
  color: #5d34ce;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

#bookings-list ul {
  list-style-type: none;
  padding: 0;
}

#bookings-list li {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
}

#bookings-list li:last-child {
  border-bottom: none;
}

#bookings-list li:hover {
  background-color: #f9f9f9;
}
/* Proposal action buttons styling */
.edit-proposal-btn,
.delete-proposal-btn,
.cancel-edit {
  padding: 6px 12px;
  margin: 0 4px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.edit-proposal-btn {
  background-color: #4a90e2;
  color: white;
}

.edit-proposal-btn:hover {
  background-color: #3a7bc8;
}

.delete-proposal-btn {
  background-color: #e74c3c;
  color: white;
}

.delete-proposal-btn:hover {
  background-color: #c0392b;
}

/* Style for Save button (when edit button is clicked) */
.editing .edit-proposal-btn {
  background-color: #2ecc71;
}

.editing .edit-proposal-btn:hover {
  background-color: #27ae60;
}

/* Style for Cancel button (when edit button is clicked) */
.cancel-edit {
  background-color: #95a5a6;
  color: white;
}

.cancel-edit:hover {
  background-color: #7f8c8d;
}

/* Add some styling to indicate a row is being edited */
.proposals-table tr.editing {
  background-color: #f5f5f5 !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.editing input {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 90%;
}
.trainer-photo-container {
  max-width: 150px;
  margin: 0 auto 20px;
  text-align: center;
}

/* Add this to control the size of the trainer photo */
#trainerPhoto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #5d34ce;
}
/* Top Bar Styles */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: rgb(217, 220, 242); /* Light blue color */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar h1 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a202c;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Adjust main container to account for top bar */
.container {
  margin-top: 50px; /* Add space for the fixed top bar */
  padding-top: 10px;
}

/* Ensure the top bar is only visible on main screen */
.top-bar.hidden {
  display: none;
}

/* Optimized Gym List Styling - Production Level */
.gym-info-section {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border-left: none;
}

.gym-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.gym-distance,
.gym-rating {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #4a5568;
  padding: 6px 12px;
  background: rgba(93, 52, 206, 0.08);
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gym-distance i {
  color: #5d34cef9;
  font-size: 0.95em;
}

.gym-rating i {
  color: #f6ad55;
  font-size: 0.95em;
}

.gym-price {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2d3748;
  margin-top: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(93, 52, 206, 0.15);
  border-bottom: 1px solid rgba(93, 52, 206, 0.15);
  font-weight: 500;
}

.gym-price strong {
  font-family: var(--font-display);
  color: #5d34cef9;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gym-slots-warning {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
  padding: 8px 14px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gym-slots-warning i {
  font-size: 0.9em;
}

/* Optimized Booking Section Styling - Production Level */
#booking-section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
}

.booking-summary {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.booking-summary h3 {
  font-family: var(--font-display);
  text-align: center;
  color: #1a202c;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.booking-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.booking-detail:last-child {
  border-bottom: none;
}

.booking-detail label {
  font-family: var(--font-body);
  font-weight: 600;
  color: #718096;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.booking-detail p {
  font-family: var(--font-body);
  margin: 0;
  color: #1a202c;
  font-weight: 600;
  font-size: 0.9375rem;
}

.booking-price {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #e0e0e0 !important;
}

.booking-price label {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: 0.01em;
}

.booking-price p {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #5d34ce;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.slots-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(255, 107, 107, 0.1);
  border-left: 4px solid #ff6b6b;
  border-radius: 5px;
  color: #ff6b6b;
  font-size: 0.9em;
  margin-top: 15px;
}

.slots-warning i {
  font-size: 1.1em;
}

#payButton {
  font-family: var(--font-body);
  width: 100%;
  padding: 16px 20px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #5d34ce 0%, #4527a0 100%);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(93, 52, 206, 0.4);
}

#payButton:hover {
  background: linear-gradient(135deg, #4527a0 0%, #311b92 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(93, 52, 206, 0.4);
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
  .gym-info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .booking-price p {
    font-size: 1.3em;
  }

  /* Responsive gym card styles */
  .gym-image-container {
    height: 180px;
  }

  .gym-content-wrapper {
    padding: 15px;
  }

  .gym-content-wrapper h3 {
    font-size: 1.2em;
  }

  .gym-price {
    font-size: 1.1em;
  }

  .gym-price strong {
    font-size: 1.3em;
  }

  #gym-list-section {
    max-width: 95%;
    padding: 20px 15px;
  }

  .book-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .view-on-map {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Loading spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animation classes disabled for performance - use CSS transitions instead */

/* Stagger animation disabled for performance */

/* ========================================
   PERFORMANCE OVERRIDES - Keep at end of file
   ======================================== */

/* Force GPU-composited transitions only to prevent layout thrashing */
button,
a,
input,
select,
.form-button,
.book-button,
.feature-icon,
.menu-item,
.gym-card,
.booking-item,
.trainer-item {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease !important;
}

/* Disable all animations initially, enable only for user-initiated interactions */
@media (prefers-reduced-motion: no-preference) {
  .user-interacted * {
    transition:
      transform 0.2s ease,
      opacity 0.2s ease !important;
  }
}
