.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: #666;
  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;
}

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

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