::placeholder {
  color: var(--fourth);
}

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

body {
  font-family: var(--primary-font), Helvetica, Arial, Lucida, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

button,
input,
input[type="date"] {
  font-family: var(--primary-font), Helvetica, Arial, Lucida, sans-serif;
}

/* Navigation */
.navbar {
  background-color: var(--text-light);
  box-shadow: 0 2px 4px var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

#logoutBtn,
#loginBtn,
#registerBtn {
  text-decoration: none;
  background: var(--primary);
  padding: 0.5rem;
  border-radius: 40px;
  margin: 0;
  color: #fff;
}

.nav-link {
  color: var(--fourth);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--third);
}

/* Buttons */

.btn-primary {
  background: var(--third);
  color: var(--text-light);
  margin: 0 auto;
  text-align: center;
  display: block;
  border: none;
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--text-light);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--modal-border);
  color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #d32f2f;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: var(--primary-font), Helvetica, Arial, Lucida, sans-serif;
  background-color: var(--background);
  color: var(--fourth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  border-radius: 5px !important;
}

/* Cards */
.card {
  background-color: var(--text-light);
  border-radius: 20px;
  box-shadow: 0 2px 4px var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Notifications */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem;
  border-radius: 40px;
  color: var(--text-light);
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.notification.success {
  background-color: var(--success);
}

.notification.error {
  background-color: var(--error);
}

.notification.warning {
  background-color: var(--warning);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

/* notifications.css */
@media (max-width: 768px) {
  .notification {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    top: auto;
    right: auto;
    text-align: center;
    animation: none;
  }

  @keyframes slideIn {
    from {
      transform: translate(-50%, 100%);
      opacity: 0;
    }

    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .container {
    padding: 0 1rem;
  }
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: #f5f5f5;
  border-radius: 0;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.featured-classes {
  margin-bottom: 3rem;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.featured-class-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.type-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.credits-info,
.bookings-info {
  text-align: center;
}

.credits-count,
.bookings-count {
  display: block;
  font-size: 1.25rem;
  font-weight: bold;
  color: #4caf50;
}

.credits-label,
.bookings-label {
  font-size: 0.75rem;
  color: #666;
}

.nav-wrapper .logo img {
  max-width: 250px;
}

main {
  padding: 1rem;
}

/* main.css */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    padding: 0.5rem;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
  }

  .auth-links {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .user-card {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    display: block;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .nav-link {
    font-size: 1rem;
    padding: 0.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

.auth-links {
  display: flex;
  gap: 1rem;
}

#loginBtn,
#registerBtn {
  padding: 0.5rem 1rem;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}

#registerBtn {
  background: #4caf50;
  color: white;
  border: 2px solid #4caf50;
}

#loginBtn:hover {
  background: rgba(74, 175, 80, 0.1);
}

#registerBtn:hover {
  background: #45a049;
}

@media (max-width: 768px) {
  .nav-wrapper {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 2;
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0;
  }

  .auth-links {
    order: 1;
    margin-left: auto;
  }
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .nav-wrapper {
    flex-wrap: wrap;
    padding: 0.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

footer li {
  text-align: center;
  margin: 0 auto;
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--primary);
}

.hidden {
  display: none;
}

/* Desktop view */
@media screen and (min-width: 768px) {
  .mobile-cards,
  .mobile-bookings {
    display: none;
  }

  .burger-menu {
    display: none !important;
  }

  .lesson-item-content {
    width: 70%;
    padding-left: 20px;
  }

  .desktop-view {
    display: table;
  }

  .btn {
    display: inline-block;
  }

  .modal-content {
    min-width: 500px;
  }
}

.lesson-search {
  display: flex;
  gap: 10px;
}

/* Mobile view */
@media screen and (max-width: 767px) {
  .btn {
    display: block !important;
    margin: 0 auto !important;
    margin-bottom: 0.5rem !important;
  }

  .lesson-search {
    display: block;
  }

  #loginBtn,
  #registerBtn {
    margin-top: 1rem !important;
  }

  .lesson-search input {
    margin-bottom: 10px;
  }

  .mobile-hidden {
    display: none;
  }

  .desktop-view {
    display: none;
  }

  .nav-wrapper {
    gap: 0;
  }

  .nav-links {
    text-align: center !important;
    display: block !important;
    margin: 0 auto !important;
  }

  #logoutBtn,
  #loginBtn,
  #registerBtn {
    margin: 0 auto;
    margin-bottom: 2rem;
    margin-top: 1rem;
  }

  .mobile-cards,
  .mobile-bookings {
    display: block;
  }

  .course-card,
  .client-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .course-card h3,
  .client-card h3 {
    margin: 0 0 12px 0;
    color: #333;
  }

  .course-info p,
  .client-info p {
    margin: 8px 0;
    font-size: 14px;
  }

  .course-info strong,
  .client-info strong {
    display: inline-block;
    min-width: 80px;
  }

  .action-buttons {
    margin-top: 16px;
    display: flex;
    gap: 8px;
  }
}

.pwa-banner {
  position: fixed;
  left: 0;
  right: 0;
  padding: 16px;
  background: var(--third);
  color: var(--text-light);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.pwa-banner[data-position="top"] {
  top: 0;
  transform: translateY(-100%);
}

.pwa-banner[data-position="bottom"] {
  bottom: 0;
  transform: translateY(100%);
}

.pwa-banner.show {
  transform: translateY(0);
}

.pwa-banner[data-theme="dark"] {
  background: #1a1a1a;
  color: white;
}

.pwa-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pwa-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.pwa-icon svg {
  width: 100%;
  height: 100%;
}

.pwa-text {
  flex-grow: 1;
}

.pwa-title {
  font-weight: 600;
  margin: 0 0 4px 0;
}

.pwa-description {
  font-size: 14px;
  margin: 0;
  opacity: 0.8;
}

.pwa-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-install-button {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.pwa-install-button:hover {
  color: var(--primary);
  background: var(--text-light);
}

.pwa-dismiss-button {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  color: white;
}

.pwa-dismiss-button:hover {
  opacity: 1;
}

.pwa-banner[data-theme="dark"] .pwa-dismiss-button {
  color: white;
}

@media (max-width: 1024px) {
  .pwa-banner {
    padding: 12px;
  }

  .pwa-content {
    gap: 12px;
  }

  .pwa-icon {
    width: 24px;
    height: 24px;
  }

  .pwa-title {
    font-size: 14px;
  }

  .pwa-description {
    font-size: 12px;
  }

  .pwa-install-button {
    padding: 6px 12px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .pwa-banner {
    display: none !important;
  }
}

/* SPLASH */
.splash-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.splash-logo {
  width: 120px;
  height: 120px;
  background-color: white;
  border-radius: 24px;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

.splash-title {
  color: white;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
}

.splash-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  position: relative;
  margin: 0 auto;
  display: none;
}

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

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.splash-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-height: 480px) {
  .splash-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }

  .splash-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .splash-spinner {
    width: 32px;
    height: 32px;
  }
}

.cards-section {
  margin-bottom: 3rem;
}

.cards-section h3 {
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.course-card,
.booking-card,
.client-card {
  background: var(--secondary);
  border-radius: 20px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.2s;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card.online {
  border: 2px solid #4a90e2;
}

.card-header {
  text-align: center;
}

.card-header h4 {
  color: #333;
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4a90e2;
}

.price .per-class {
  font-size: 0.9rem;
  color: #666;
}

.sessions {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  padding: 0.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.card-content {
  flex-grow: 1;
}

.details {
  margin: 1rem 0;
  color: #666;
}

.details p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.availability,
.validity {
  font-size: 0.9rem;
  color: #888;
}

.course-card button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

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

  .course-card {
    padding: 1.5rem;
  }
}

.card-details {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--primary);
  border-radius: 8px;
}

.card-details .price {
  font-size: 2rem;
  font-weight: bold;
  color: #4a90e2;
}

.payment-section {
  margin-top: 2rem;
}

.payment-options {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.bank-details {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.note {
  margin-top: 1rem;
  font-style: italic;
  color: #666;
}

#card-element {
  margin: 20px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 40px;
}

.payment-error {
  color: #dc3545;
  margin: 10px 0;
  font-size: 14px;
}

#submit-payment {
  width: 100%;
  margin-top: 20px;
}

/* SLIDER */

.slide-content img {
  max-width: 300px;
}

.slider-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  background: var(--background);
}

.slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 89, 89, 0.4);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo {
  font-size: 4rem;
  font-weight: bold;
}

.slide-title {
  font-size: 1.5rem;
  line-height: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.slide-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: none;
}

.dots {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}

.dot {
  position: relative;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot::after {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease-in-out;
}

.dot.active::after {
  width: 1rem;
  height: 1rem;
  background-color: white;
}

.center.index-start {
  position: fixed;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  padding: 0 2rem;
}

.waves-light.btn-large {
  display: inline-block;
  background-color: var(--primary);
  color: var(--secondary);
  text-decoration: none;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-weight: bold;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.waves-light.btn-large:hover {
  background-color: var(--third);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.waves-light.bg-secondary {
  background-color: var(--third);
}

.waves-light.bgbtn-secondary:hover {
  background-color: var(--primary);
}

.login-link,
.register-link {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.login-link:hover,
.register-link:hover {
  opacity: 1;
}

.cta-button {
  background-color: var(--third);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  cursor: pointer;
  width: 80%;
  max-width: 300px;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.auth-links a {
  color: white;
  text-decoration: none;
}

@media (min-width: 768px) {
  .reset-password-container {
    margin: 0 auto;
    width: 50%;
  }
}

.nav-links {
  justify-content: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.item-nav-link {
  color: var(--third);
  box-shadow: inset 0 0 0 1px #d6d6d7;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.7142857143;
  border-radius: 0.5rem;
  transition: color 0.1s cubic-bezier(0.5, 0.2, 0.9, 0.4),
    background-color 0.1s cubic-bezier(0.5, 0.2, 0.9, 0.4),
    border-color 0.1s cubic-bezier(0.5, 0.2, 0.9, 0.4),
    box-shadow 0.1s cubic-bezier(0.5, 0.2, 0.9, 0.4);
  display: inline-flex;
  align-items: center;
}

.item-nav-link:hover {
  background-color: #d6d6d7;
}

.navbar {
  position: relative;
}

footer {
  min-height: 15vh;
  line-height: 15vh;
  background: var(--fourth);
  margin-top: 1rem;
}

.lesson-item {
  margin-bottom: 10px;
}
.lesson-item-link {
  cursor: pointer;
}
.lesson-item-link:hover {
  text-decoration: underline;
}
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px;
  border-radius: 5px;
  color: white;
  z-index: 1000;
  width: 25vw;
  max-height: 10vh;
}
.notification.success {
  background-color: #4caf50;
}
.notification.error {
  background-color: #f44336;
}
.notification.warning {
  background-color: #ffc107;
  color: black;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  width: 50%;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}
.form-error {
  display: none;
  color: #f44336;
  margin-top: 10px;
}
h2 {
  margin-top: 1rem;
}
.lesson-list {
  list-style: none;
  padding: 0;
}
.lesson-list li {
  border-radius: 10px;
  padding: 0.5rem;
  line-height: 2rem;
  margin-left: 0.25rem;
  list-style-type: none;
}
.lesson-detail-container .lesson-items-nav .lesson-list > li:hover {
  background: #f0f0f0;
}
.lesson-detail-container .lesson-items-nav .lesson-list > li:hover > a {
  color: var(--third);
  text-decoration: underline;
}
.lesson-detail-container .lesson-items-nav .lesson-list > li .sub-item-list {
  background: none;
}
.lesson-detail-container .lesson-items-nav .lesson-list .sub-item-list li {
  background: none;
}
.lesson-detail-container
  .lesson-items-nav
  .lesson-list
  .sub-item-list
  li:hover {
  background: #f0f0f0;
}
.lesson-detail-container
  .lesson-items-nav
  .lesson-list
  .sub-item-list
  li:hover
  a {
  color: var(--third);
  text-decoration: underline;
}
.lesson-detail-container .lesson-items-nav .lesson-list li .sub-item-list li {
  background: none;
}
.lesson-detail-container .lesson-items-nav .lesson-list li .sub-item-list li a {
  color: var(--primary);
}
.lesson-list a {
  text-decoration: none;
}
.lesson-detail-container {
  display: flex;
  padding-top: 2rem;
}
.lesson-items-nav {
  width: 30%;
  border-right: 1px solid #dee2e6;
  padding-right: 20px;
}
.selected-lesson-item {
  font-weight: bold;
  color: var(--third) !important;
}
.authenticated-content {
  display: none;
}
.authenticated-content.visible {
  display: block !important;
}
.unauthenticated-content {
  display: block;
}
.unauthenticated-content.hidden {
  display: none;
}
.video-player {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}
.nav-links {
  margin-top: 10px;
}
h1 {
  font-weight: bold;
}
.btn {
  color: var(--fourth);
  background: none;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  padding: 0.375rem 0.875rem;
  font-size: 1rem;
  line-height: 1rem;
  border-radius: 40px;
  transition: color 0.1s cubic-bezier(0.5, 0.2, 0.9, 0.4),
    background-color 0.1s cubic-bezier(0.5, 0.2, 0.9, 0.4),
    border-color 0.1s cubic-bezier(0.5, 0.2, 0.9, 0.4),
    box-shadow 0.1s cubic-bezier(0.5, 0.2, 0.9, 0.4);
  border: 1px solid;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn:hover {
  cursor: pointer;
}
.container .btn {
  margin-left: 0.5rem;
}
.modal-dialog {
  min-width: 500px;
  margin: 30px auto;
  max-height: 80vh;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-size: 1.25rem;
}
.btn-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  border: 1px solid #dee2e6;
  padding: 8px;
  text-align: left;
}
.btn-danger {
  background: var(--primary);
  color: var(--background);
}
.access-item {
  margin-bottom: 10px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.btn-outline {
  background: none;
  border: 1px solid #4caf50;
  color: #4caf50;
}
.ui-autocomplete {
  position: absolute;
  z-index: 2000;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
}
.ui-autocomplete li {
  padding: 5px 10px;
  cursor: pointer;
}
.ui-autocomplete li:hover {
  background: #f0f0f0;
}
textarea {
  min-height: 30vh;
}
footer {
  min-height: 15vh;
  line-height: 15vh;
}

.d-sm-inline::before {
  content: "•";
  margin: 0 0.375rem;
  color: #98989a;
}

.modal {
  z-index: 1000;
}

.ui-autocomplete {
  z-index: 20000 !important;
}

.sub-item {
  padding-left: 20px; /* Indentation for sub-items */
}
.sub-item-list {
  display: none; /* Initially hide sub-items */
}
.sub-item-list.active {
  display: block; /* Show sub-items when active */
}
.lesson-item-link.parent {
  cursor: pointer; /* Indicate parent items are clickable for toggling */
}
.ui-autocomplete {
  display: block;
  visibility: visible;
  opacity: 1 !important;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 10000 !important;
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
}
.ui-autocomplete li {
  padding: 5px 10px;
  cursor: pointer;
}
.ui-autocomplete li:hover {
  background: #f0f0f0;
}

.progress-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.progress-table th,
.progress-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.progress-table th {
  background-color: var(--primary);
  color: white;
}

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

.progress-table tr:hover {
  background-color: #f0f0f0;
}
.btn-outline {
  padding: 8px 16px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: none;
  border-radius: 40px;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-outline svg {
  vertical-align: middle;
}
.video-player {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 10px 0;
}

audio.video-player {
  width: 100%;
  max-width: 800px;
}

.btn-primary {
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 40px;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--third);
}

.progress-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.progress-table th,
.progress-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.progress-table th {
  background-color: var(--primary);
  color: white;
}

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

.progress-table tr:hover {
  background-color: #f0f0f0;
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
}
.lesson-table th,
.lesson-table td {
  padding: 8px;
  text-align: left;
}
.lesson-table td:last-child {
  display: flex;
  gap: 5px;
}
.lesson-table th {
  background-color: #f4f4f4;
  font-weight: normal;
  color: #59585a;
  text-transform: uppercase;
}
.lesson-table a.lesson-link {
  text-decoration: none;
}
.lesson-table a.lesson-link:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.875rem;
}
.badge-grey {
  background-color: #6b7280;
  color: white;
}
.badge-green {
  background-color: #10b981;
  color: white;
}
.badge-orange {
  background-color: #f59e0b;
  color: white;
}
.badge-sm {
  font-size: 0.75rem;
}
.badge svg {
  margin-right: 4px;
}

.category-title {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 4px;
}

.ui-widget-content .ui-state-active {
  background: none !important;
  border: none !important;
  color: var(--third) !important;
}

.cover {
  max-width: 200px;
}

.mini-cover {
  max-width: 100px;
}

tr {
  border-top: 1px dashed var(--secondary);
}
.play-btn::before {
  content: "\F4F2"; /* Unicode for heart-fill icon */
  font-family: "bootstrap-icons"; /* Bootstrap Icons font */
  margin-right: 5px; /* Space between icon and text */
}
.favorite-btn::before,
.finished-btn::before,
.share-btn::before,
.watchlist-btn::before,
.lesson-page-link::before,
.open-link::before,
.sales-link::before {
  font-family: "bootstrap-icons";
}
.favorite-btn,
.finished-btn,
.share-btn,
.watchlist-btn,
.lesson-page-link,
.open-link,
.sales-link {
  margin-right: 2px;
  background-color: var(--secondary);
  border-radius: 50px;
  padding: 0.5rem;
  padding-top: 0.5rem;
  color: var(--third);
  border: none;
  display: none;
}

.row__video:hover .favorite-btn,
.row__video:hover .finished-btn,
.row__video:hover .share-btn,
.row__video:hover .watchlist-btn,
.row__video:hover .lesson-page-link {
  display: inline-block;
}

.favorite-btn::before {
  content: "\F588";
}
.favorite-btn:hover,
.finished-btn:hover,
.watchlist-btn:hover,
.sales-link:hover,
.share-btn:hover,
.lesson-page-link:hover {
  background-color: var(--primary);
}
.favorite-btn.no-margin::before {
  margin-right: 0;
}
.favorite-btn.selected::before {
  content: "\F586";
}
.watchlist-btn::before {
  content: "\F1A2";
}
.watchlist-btn.selected::before {
  content: "\F199";
}
.lesson-page-link::before {
  content: "\F1C5";
}
.open-link::before {
  content: "\F1C5";
}
.share-btn::before {
  content: "\F52D";
}
.sales-link::before {
  content: "\F183";
}
.finished-btn::before {
  content: "\F26B";
}
.finished-btn.selected::before {
  content: "\F26A";
}
.calendar-controls {
  margin-top: 10px;
}
.calendar-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.calendar-select-wrapper::before {
  content: "\F1E4";
  font-family: "bootstrap-icons";
  margin-right: 5px;
  font-size: 1.2em;
  color: #333;
}
.calendar-controls select {
  padding: 8px;
  width: 200px;
}
.modal__buttons button.favorite-btn,
.modal__buttons button.finished-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.modal__buttons button.favorite-btn:hover,
.modal__buttons button.finished-btn:hover {
  border-color: var(--secondary);
  background: none;
}

.send-access::before {
  content: "\F6B2";
  font-family: "bootstrap-icons";
  margin-right: 5px;
}

.edit-access::before {
  content: "\F4CA";
  font-family: "bootstrap-icons";
  margin-right: 5px;
}

.remove-access::before {
  content: "\F5DD";
  font-family: "bootstrap-icons";
  margin-right: 5px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--secondary-font), Helvetica, Arial, Lucida, sans-serif;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--modal-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  padding: 0.8rem;
  border: 1px solid var(--modal-border);
  border-radius: 4px;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.modal-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 50%;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  margin: 40px auto;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  line-height: 1;
  padding: 0.5rem;
  z-index: 9999;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
  width: unset;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.error-message {
  color: #f44336;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-footer {
  text-align: center;
  margin-top: 1rem;
  color: #666;
}

.form-footer a {
  color: var(--third);
  text-decoration: none;
  display: block;
}

.form-footer a:hover {
  text-decoration: underline;
}

footer a {
  color: #fff;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
  }

  .auth-form h2 {
    font-size: 1.5rem;
  }
}

/* Add to modal.css */
.booking-modal {
  max-width: 500px;
}

.class-details {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 4px;
}

.class-details p {
  margin: 0.5rem 0;
}

.booking-options {
  margin: 1.5rem 0;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.payment-methods button {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-methods .btn-primary {
  background: var(--primary);
  color: white;
}

.payment-methods .btn-secondary {
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.credits-count {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.booking-footer {
  margin-top: 1.5rem;
  text-align: right;
}

.bookings-list {
  margin-top: 1.5rem;
}

.booking-item {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.booking-info h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.booking-info p {
  margin: 0.25rem 0;
  color: #666;
}

.no-bookings {
  text-align: center;
  padding: 2rem;
  color: #666;
  background: #f5f5f5;
  border-radius: 4px;
}

.modal.active {
  display: flex !important;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.booking-details {
  margin: 1.5rem 0;
}

.booking-details p {
  margin: 0.5rem 0;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* modal.css */
@media (max-width: 768px) {
  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 20px auto;
    padding: 1.5rem;
  }

  .booking-details {
    margin: 1rem 0;
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .modal-footer button {
    width: 100%;
    padding: 1rem;
  }
}

#creditsInputGroup {
  transition: all 0.3s ease;
}

.multi-select-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
}

.multi-select-option {
  display: block;
  padding: 0.3rem;
}

.multi-select-option:hover {
  background-color: #f0f0f0;
}

.event-clients {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.event-clients.active {
  display: block;
}

.user-checkbox-container,
.event-checkbox-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  padding: 0.3rem 0;
}

.checkbox-option input {
  margin-right: 0.5rem;
}

.checkbox-option:hover {
  background-color: #f0f0f0;
}

.event-item {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
}

.event-checkbox {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}

.event-content {
  flex: 1;
}

.event-clients {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.event-clients.active {
  display: block;
}

.event-item {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
}

.event-item:hover {
  background-color: #f0f0f0;
}

.event-checkbox {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}

.event-content {
  flex: 1;
}

.toggle-clients {
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  background-color: #e0e0e0;
  border: none;
  border-radius: 4px;
}

.toggle-clients:hover {
  background-color: #d0d0d0;
}

.user-checkbox-container,
.event-checkbox-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  padding: 0.3rem 0;
}

.checkbox-option input {
  margin-right: 0.5rem;
}

.checkbox-option:hover {
  background-color: #f0f0f0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;

  z-index: 1000;
}

nav {
  margin: 0 auto;
}

nav button {
  background: var(--third);
  color: white;
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 40px;
}

.nav-wrapper .logo img {
  max-width: 150px !important;
}

.hero {
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transition: opacity 1s ease-in;
}

.hero.loaded {
  opacity: 1;
}

.hero h1 {
  font-size: 3rem;
  line-height: 3rem;
  margin-bottom: 20px;
}

.hero button {
  background: var(--third);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 40px;
}

.row {
  margin: 40px 20px;
  position: relative;
}

.row h2 {
  margin-bottom: 10px;
}

.row__videos {
  display: flex;
  overflow-y: hidden;
  overflow-x: scroll;
  padding: 20px 0;
  scroll-behavior: smooth;
  width: 100%;
}

.row__videos::-webkit-scrollbar {
  display: none;
}

.row__video {
  flex: 0 0 300px;
  width: 300px;
  height: 169px;
  margin-right: 10px;
  transition: transform 0.45s;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #aebab2;
}

.row__video:hover {
  transform: scale(1.08);
  z-index: 1;
}

.row__video.restricted {
  filter: grayscale(1);
}

.row__video.restricted:hover::after {
  content: "\F47A";
  font-family: "bootstrap-icons";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 5;
}

.row__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row__videos {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.arrow {
  position: absolute;
  top: 50%;
  /*transform: translateY(-50%);*/
  background: rgba(0, 89, 89, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  font-weight: normal;
}

.arrow-left {
  left: -1rem;
}

.arrow-right {
  right: -1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal__content {
  background: #f6eae0;
  color: var(--third);
  width: 80%;
  max-width: 800px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal__video {
  width: 100%;
  max-height: 400px;
  background: black;
  overflow: hidden;
}

.modal__video.restricted video {
  filter: grayscale(1);
}

.modal__video video {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.row__video:hover .modal__overlay {
  display: flex;
}

.modal__overlay h3 {
  color: #fff;
  text-align: center;
  font-size: 2rem;
}

.modal__overlay .modal__buttons {
  display: block;
  gap: 10px;
  margin: 0 auto;
  text-align: center;
}
.modal__details {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  max-height: 200px;
}

.modal__details h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.modal__details p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.modal__meta {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 20px;
}

#modalDuration {
  display: none;
}

.modal__buttons button {
  background: var(--primary);
  color: var(--third);
  border: none;
  padding: 10px 20px;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 20px;
}

.modal__buttons button:hover {
  background: var(--third);
  color: var(--secondary);
}

.modal__buttons .finished-btn.added,
.modal__buttons .favorite-btn.added {
  background: #666;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.media-duration {
  margin-top: 5px;
  font-size: 0.9em;
  color: #555;
}

.qcm-list {
  list-style: none;
  padding: 0;
}

.qcm-list li {
  margin-bottom: 10px;
}

.qcm-list a {
  color: var(--third);
  cursor: pointer;
}

/* Admin Modal Styles (unchanged) */
.modal.admin-modal {
  background: rgba(0, 0, 0, 0.5);
}

.modal.admin-modal .modal-content {
  background-color: white;
  color: #333;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}

.row__video {
  position: relative;
  width: 300px;
  height: 169px;
  margin-right: 10px;
  transition: transform 0.45s;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  /* padding: 1.25rem; */
  z-index: 1;
}
/*
.modal__overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background: rgba(0, 87, 87, 0.7);
  z-index: 10;
  flex-direction: column;
  justify-content: flex-end; 
  align-items: center;
  padding: 8px;
  border-radius: 0 0 5px 5px;
}*/

.row__video:hover .modal__overlay {
  display: flex;
}

.buy-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--third);
  color: white;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
}

.buy-message p {
  margin: 0 0 10px;
}

.buy-message button {
  padding: 10px 20px;
  background: var(--fourth);
  color: var(--third);
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.buy-message button:hover {
  color: var(--fourth);
  background: var(--third);
}

.calendar-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.calendar-header h2 {
  font-size: 1.8em;
  margin: 0;
  color: #4a4a4a;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.view-toggle {
  display: flex;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .view-toggle {
    width: 100%;
  }
}

.view-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.view-btn.active {
  background: var(--third);
  color: white;
}

.view-btn:hover {
  background: var(--secondary);
}

.prev-btn,
.next-btn {
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  z-index: 10;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-weight: normal;
}

.prev-btn:hover,
.next-btn:hover {
  color: var(--third);
}

.current-period {
  font-weight: 600;
  font-size: 1.2em;
  min-width: 200px;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Shared event styles */
.event {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.event:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-title {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 5px;
  color: var(--third);
}

.event-time {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.event-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.85em;
  color: #888;
}

.booked {
  color: var(--primary);
  font-weight: bold;
}

.btn-book {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-book:hover {
  background: var(--primary);
}

/* Month Grid View */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.weekday {
  background: #f8f9fa;
  text-align: center;
  font-weight: 600;
  padding: 12px;
  color: #4a4a4a;
  border-bottom: 1px solid #e0e0e0;
}

.calendar-day {
  background: white;
  min-height: 140px;
  padding: 10px;
  position: relative;
  transition: background 0.3s;
}

.calendar-day:hover {
  background: #f8f9fa;
}

.calendar-day.other-month {
  background: #f8f9fa;
  color: #bbb;
}

.calendar-day.today {
  border: 2px solid var(--third);
  border-radius: 4px;
}

.calendar-day.empty-day {
  background: #f8f9fa;
}

.calendar-day.past-events {
  opacity: 0.7;
}

.day-number {
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: 600;
  color: #888;
}

.day-events {
  margin-top: 25px;
}

/* Week Grid View (Similar to month but taller cells) */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.week-grid .weekday {
  background: #f8f9fa;
  text-align: center;
  font-weight: 600;
  padding: 12px;
  color: #4a4a4a;
  border-bottom: 1px solid #e0e0e0;
}

.week-grid .calendar-day {
  background: white;
  min-height: 300px; /* Taller for week view */
  padding: 10px;
  position: relative;
}

.week-grid .day-number {
  font-size: 1.2em;
  top: 15px;
  right: 15px;
}

.week-grid .day-events {
  margin-top: 40px;
}

/* List Views (Week and Month) */
.week-list,
.month-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.day-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

.day-section:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.day-section.past-events {
  opacity: 0.7;
}

.day-header {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  color: #4a4a4a;
}

.day-events p {
  color: #888;
  font-style: italic;
}

/* Modal (kept similar for completeness) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  max-height: 90vh;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: auto;
}

.modal-close {
  float: right;
  font-size: 1.5em;
  cursor: pointer;
  color: #aaa;
}

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

.row__video .bloc-title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.5rem;
  border-radius: 10px;
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background-color: var(--secondary);
  color: var(--third);
}

.row__video .bloc-actions {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.5rem;
  border-radius: 10px;
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  color: var(--third);
}

.row__video a.class-btn {
  display: none;
}

.row__video:hover a.class-btn {
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  color: #000;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  -webkit-transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
  transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
  display: inline-flex;
  -webkit-box-align: center;
}

.class-btn {
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #000;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  -webkit-transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
  transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
  display: inline-flex;
  -webkit-box-align: center;
}

restricted-access {
  opacity: 0.7; /* Optional: Visual indicator for restricted lessons */
  position: relative;
}

.restricted-access::after {
  content: "Accès restreint";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
}

section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

#calendar-type {
  color: var(--secondary);
  background-color: var(--third);
}

.availability-dates .flatpickr-day.selected,
.availability-dates .flatpickr-day.selected.prevMonthDay,
.availability-dates .flatpickr-day.startRange.prevMonthDay,
.availability-dates .flatpickr-day.endRange.prevMonthDay,
.availability-dates .flatpickr-day.selected.nextMonthDay,
.availability-dates .flatpickr-day.startRange.nextMonthDay,
.availability-dates .flatpickr-day.endRange.nextMonthDay {
  background: var(--secondary);
  -webkit-box-shadow: none;
  box-shadow: none;
  background-color: var(--third);
  color: var(--secondary);
  border-color: var(--third);
  text-decoration: line-through;
}

.availability-dates .flatpickr-day.selected:hover,
.availability-dates .flatpickr-day.selected.prevMonthDay:hover,
.availability-dates .flatpickr-day.startRange.prevMonthDay:hover,
.availability-dates .flatpickr-day.endRange.prevMonthDay:hover,
.availability-dates .flatpickr-day.selected.nextMonthDay:hover,
.availability-dates .flatpickr-day.startRange.nextMonthDay:hover,
.availability-dates .flatpickr-day.endRange.nextMonthDay:hover {
  background-color: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
}

.actions .favorite-btn,
.actions .finished-btn,
.actions .share-btn,
.actions .watchlist-btn,
.actions .lesson-page-link {
  display: block;
  font-size: 1.5rem;
}

.open-link,
.sales-link {
  display: block;
  font-size: 1rem;
  width: 2rem;
}

.ui-autocomplete {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 10000 !important;
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
}
.ui-autocomplete li {
  padding: 5px 10px;
  cursor: pointer;
}
.ui-autocomplete li:hover {
  background: #f0f0f0;
}
.sub-item {
  padding-left: 20px;
}
.sub-item-list {
  display: none;
}
.sub-item-list.active {
  display: block;
}
.lesson-item-link.parent {
  cursor: pointer;
}
.lesson-list li {
  background: none;
}
.lesson-list > li:hover {
  background: #f0f0f0;
}
.lesson-list > li:hover > a {
  color: #fff;
  text-decoration: underline;
}
.lesson-list > li .sub-item-list {
  background: none;
}
.lesson-list .sub-item-list li {
  background: none;
}
.lesson-list .sub-item-list li:hover {
  background: #f0f0f0;
}
.lesson-list .sub-item-list li:hover a {
  color: #fff;
  text-decoration: underline;
}
.lesson-list li .sub-item-list li {
  background: none;
}
.lesson-list li .sub-item-list li a {
  color: var(--primary);
}
.video-input-type {
  display: flex;
  gap: 20px;
  margin-bottom: 1rem;
}
.video-input-type label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lesson-url {
  font-size: 0.9em;
  color: #666;
  margin-left: 10px;
}
.copy-url-btn {
  margin-left: 10px;
  cursor: pointer;
  color: var(--primary);
  text-decoration: underline;
}

#userInfo {
  display: none;
}

.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.form-group input[type="radio"] {
  margin-right: 0.5rem;
}

.form-control[multiple] {
  min-height: 300px;
  border-radius: 5px !important;
}

select {
  color: var(--fourth) !important;
  background-color: var(--background) !important;
  padding: 5px !important;
}

select option {
  color: var(--fourth) !important;
  background-color: var(--background) !important;
}

select:focus {
  outline: none !important;
}

input[type="radio"] {
  margin-right: 0.25rem;
}

.tag-chip {
  background-color: var(--background);
  border-radius: 15px;
  padding: 5px 10px;
  margin: 2px;
  display: inline-flex;
  align-items: center;
}

.remove-tag {
  margin-left: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

option[disabled] {
  text-decoration: line-through;
}

#tagsContainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#space-switcher-overlay {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 100%;
  height: 0%;
  display: flex;
  justify-content: right;
  align-items: end;
  z-index: 1000;
}
.space-switcher-modal {
  background: var(--secondary) !important;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.space-switcher-modal select {
  margin: 10px;
  padding: 8px;
  font-size: 16px;
  color: var(--third) !important;
  border: none;
  border-radius: 5px;
  padding: 0.5rem !important;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.video-player {
  width: 100%;
  height: auto;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10;
}

.video-overlay.active {
  display: flex;
}

.actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 10rem;
}

/* Base styles for lesson-items-nav */
.lesson-items-nav {
  background: #f8f8f8;
  padding: 20px;
  transition: transform 0.3s ease-in-out;
}

/* Burger menu button */
.burger-menu {
  display: none;
  position: fixed;
  top: 50%;
  left: 0;
  display: flex;
  justify-content: left;
  align-items: start;
  z-index: 1000;
  background: var(--secondary) !important;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 1.5rem;
  padding: 0.5rem;
  border: none;
}

/* Responsive styles for screens under 768px */
@media screen and (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  .lesson-items-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px; /* Adjust as needed */
    height: 100%;
    transform: translateX(-100%); /* Hidden by default */
    z-index: 999;
    overflow-y: auto;
  }

  .lesson-items-nav.active {
    transform: translateX(0); /* Show when active */
    padding-top: 4rem;
  }

  /* Adjust main content to prevent overlap */
  .lesson-item-content {
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
  }

  .lesson-items-nav.active + .lesson-item-content {
    margin-left: 250px; /* Push content when menu is open */
  }
}

/* Ensure text in links doesn't overflow */
.lesson-item-link {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Basic styling for the menu content */
.lesson-items-nav h1,
.lesson-items-nav h2 {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 10px;
}

.lesson-items-nav p {
  margin-bottom: 15px;
}

.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-item-list {
  padding-left: 20px;
}

.sub-item {
  margin-bottom: 5px;
}

/* Navigation links and buttons */
.lesson-item .nav-links {
  margin-bottom: 2rem !important;
}

.calendar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.calendar-header h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: #333;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.view-toggle {
  position: relative;
}

.view-toggle-btn {
  display: none;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.view-dropdown {
  display: flex;
  gap: 8px;
}

.view-btn {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #e9ecef;
}

.prev-btn,
.next-btn {
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.current-period {
  font-size: 1rem;
  color: #333;
  min-width: 120px;
  text-align: center;
}

/* Mobile styles */
@media (max-width: 768px) {
  .calendar-header {
    padding: 12px;
  }

  .calendar-header h2 {
    font-size: 1.25rem;
  }

  .calendar-controls {
    flex-wrap: wrap;
    gap: 6px;
  }

  .view-toggle-btn {
    display: block;
  }

  .view-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-direction: column;
    width: 150px;
    z-index: 10;
  }

  .view-dropdown.active {
    display: flex;
  }

  .view-btn {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    text-align: left;
  }

  .view-btn:last-child {
    border-bottom: none;
  }

  .prev-btn,
  .next-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .current-period {
    font-size: 0.9rem;
    min-width: 100px;
  }
}

.event-item {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
}
.event-item:hover {
  background-color: #f0f0f0;
}
.event-item.already-booked,
.event-item.already-booked:hover {
  background: var(--secondary);
  cursor: not-allowed;
}
.event-checkbox {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}
.event-content {
  flex: 1;
}
.event-checkbox-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
}

.container {
  width: 90%;
}

.container img.banner {
  max-width: 100%;
}

.card-item[data-counter="0"] .card-credits,
.card-info[data-counter="0"] .counter-only {
  display: none;
}

.btn-primary[disabled],
.btn-primary[disabled]:hover {
  filter: grayscale();
  cursor: pointer;
  background-color: var(--primary);
}

.access-item span {
  float: right;
}

.edit-field {
  margin-bottom: 10px;
}
.edit-field span {
  display: inline-block;
  margin-right: 10px;
}
.edit-field input {
  display: none;
}
.edit-field.editing span {
  display: none;
}
.edit-field.editing input {
  display: inline-block;
}

.restricted #calendar-type {
  display: none;
}
