/* Subscription Modal Styles */
.modal-backdrop.show {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0.7;
  z-index: 1055 !important; /* Ensure backdrop is above sidebar (z-index: 1000) */
}

/* Ensure subscription modals appear above sidebar */
.modal {
  z-index: 1060 !important; /* Higher than sidebar z-index (1000) and backdrop (1055) */
}

/* Specific targeting for subscription-related modals */
.modal.fade.show {
  z-index: 1060 !important;
}

/* PayPal modal and other subscription modals */
#paypalModal,
.subscription-modal,
.modal[id*="subscription"],
.modal[id*="paypal"] {
  z-index: 1060 !important;
}

/* Ensure modal dialog is properly positioned */
.modal-dialog {
  z-index: 1061 !important;
}

.subscription-plan-card {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.subscription-plan-card:hover {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.subscription-plan-card .form-check-input:checked + .form-check-label {
  font-weight: bold;
}

.subscription-plan-card .form-check-label {
  width: 100%;
  cursor: pointer;
}

.subscription-plan-card.selected {
  border-color: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.subscription-plan-card.current-plan {
  border-color: #ffc107;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
  background-color: rgba(255, 193, 7, 0.05);
  position: relative;
}

.current-plan-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc107;
  color: #212529;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

.price-badge {
  background-color: #007bff;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: bold;
}
