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

  /* Modern Font System */
  --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;
}

html {
  scroll-behavior: smooth;
}

* {
  transition: background-color var(--transition-base),
    color var(--transition-base), border-color var(--transition-base),
    transform var(--transition-base), box-shadow var(--transition-base);
}

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;
}
.model {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
#termsModel,
#privacyModel {
  z-index: 2; /* Higher z-index to appear on top */
}

.model-content {
  background-color: #aab8c2;
  margin: 5% auto;
  padding: 30px;
  border: none;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.booking-count {
  display: inline-block;
  background-color: #5d34cef9;
  color: white;
  border-radius: 50%;
  width: 18px; /* Slightly smaller */
  height: 18px; /* Slightly smaller */
  line-height: 18px;
  text-align: center;
  font-size: 0.7em; /* Smaller text */
  margin-top: 3px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  #calendar th,
  #calendar td {
    padding: 4px 2px; /* Even smaller padding on mobile */
    font-size: 12px;
  }

  .booking-count {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 0.6em;
  }
}

.close {
  color: black;
  float: right;
  font-size: 28px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: red;
  text-decoration: none;
  cursor: pointer;
}

.form-input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  background-color: #f9f9f9;
}

.login-button,
.form-button {
  display: block;
  /* Change from inline-block to block */
  width: fit-content;
  /* Change from auto to fit-content */
  margin: 20px auto;
  /* This will center the button horizontally */
  padding: 12px 30px;
  background-color: #5d34cef9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-container label {
  font-size: 14px;
  color: #333;
}

.checkbox-container a {
  color: #5d34cef9;
  text-decoration: none;
}

.checkbox-container a:hover {
  text-decoration: underline;
}
/* Terms and Privacy Policy Model Styles */
.terms-content,
.privacy-content {
  max-height: 70vh;
  overflow-y: auto;
  padding: 0 20px;
  line-height: 1.6;
}

.terms-content h3,
.privacy-content h3 {
  color: #5d34cef9;
  margin-top: 20px;
  margin-bottom: 10px;
}

.terms-content p,
.privacy-content p {
  margin-bottom: 15px;
}

.terms-content ul,
.privacy-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.terms-content li,
.privacy-content li {
  margin-bottom: 5px;
}

.forgot-password {
  text-align: center;
  margin-top: 10px;
}

.forgot-password a {
  color: #5d34cef9;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.facebook {
  background-color: #3b5998;
}

.google {
  background-color: #db4a39;
}

#login-button,
#signup-button {
  display: inline-block;
  width: auto;
  margin: 20px auto;
  padding: 12px 30px;
  background-color: #5d34cef9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.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;
}

.password-toggle::before {
  content: "\f06e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #888;
}

.password-toggle.hide::before {
  content: "\f070";
}

.form-input[type="password"],
.form-input[type="text"] {
  padding-right: 30px;
}

.form-button,
#login-button,
#signup-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-button:hover,
#login-button:hover,
#signup-button:hover {
  background-color: #301e63f9;
  transform: scale(1.05);
}

.model-content {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.container {
  max-width: auto;
  margin: 40px auto;
  background: #f5f5f5;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3 {
  color: #2c3e50;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
}

.form-input[type="password"],
.form-input[type="text"] {
  padding-right: 30px;
}

.dashboard-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#paymentTrackingTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.payment-table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}
#paymentTrackingTable th,
#paymentTrackingTable td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap; /* Prevents text wrapping */
}

#paymentTrackingTable th {
  background-color: #f2f2f2;
  font-weight: bold;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dashboard-item {
  text-align: center;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
}
/* Toggle Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin: 10px 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

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

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

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

.toggle-text {
  margin-top: 5px;
  font-size: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

button {
  padding: 8px 12px;
  background-color: #5d34cef9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.qr-scanner {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#qr-video {
  width: 100%;
  max-width: 400px;
  margin-bottom: 10px;
}
.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #2ecc71; /* Green color matching your theme */
  animation: scan-animation 2s infinite;
  display: none;
}

@keyframes scan-animation {
  0% {
    top: 0;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0;
  }
}

#qr-video-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.qr-scanner button {
  margin: 5px;
}

.review {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

#bookingRange {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #f9f9f9;
}

#bookingNavigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

#bookingNavigation button {
  padding: 8px 12px;
  background-color: #5d34cef9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 10px;
}

#bookingNavigation button:hover {
  background-color: #301e63f9;
}

#currentDate {
  font-size: 18px;
  font-weight: bold;
}

#bookingDisplay {
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 15px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  #bookingNavigation {
    flex-direction: column;
  }

  #bookingNavigation button {
    margin: 5px 0;
  }
}

footer {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

footer p {
  margin-bottom: 10px;
}

.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  color: red;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 24px;
}

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

.social-links a:hover {
  color: red;
}
#calendar {
  width: 100%;
  overflow-x: auto; /* Only add scroll if absolutely needed */
}

#calendar table {
  width: 100%;
  table-layout: fixed; /* Makes columns equal width */
  border-collapse: collapse;
  min-width: auto; /* Remove any minimum width */
}
.social-login,
.otp-login {
  margin-top: 20px;
}

.phone-input-container {
  display: flex;
  align-items: center;
}
.phone-input {
  flex-grow: 1;
}
.country-code {
  padding: 5px;
  background-color: #f0f0f0;
  border: 1px solid #f0f0f0;
  border-right: none;
}

.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;
}

#calendar th,
#calendar td {
  padding: 8px 4px; /* Reduce padding to fit within container */
  text-align: center;
  border: 1px solid #ddd;
  font-size: 14px; /* Slightly smaller font */
  position: relative; /* For the booking count circle positioning */
}

#calendar td a {
  display: block;
  text-decoration: none;
  color: #333;
}
.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: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 5px;
  text-align: center;
}

#dialogOkButton {
  margin-top: 15px;
}
.class-tabs {
  display: flex;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 10px;
  color: var(--text-color);
}

.tab-button.active {
  background-color: var(--primary-color);
  color: white;
}

.class-container {
  width: 100%;
  overflow-x: auto;
}

#pendingClassesTable,
#scheduledClassesTable {
  width: 100%;
  border-collapse: collapse;
}

#pendingClassesTable th,
#scheduledClassesTable th {
  background-color: #f2f2f2;
  padding: 12px;
  text-align: left;
}

#pendingClassesTable td,
#scheduledClassesTable td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.class-action-button {
  padding: 6px 12px;
  margin-right: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.approve-button {
  background-color: #2ecc71;
  color: white;
}

.reject-button {
  background-color: #e74c3c;
  color: white;
}

.cancel-button {
  background-color: #f39c12;
  color: white;
}
