/* Price display styling */
.price-yearly-toggle {
  font-size: 0.85rem;
  margin-top: 5px;
  color: #6c757d;
}

/* Modal styling */
.modal-dialog.modal-xl {
  max-width: 1405px;
  width: 95%;
  margin: 1.75rem auto;
}

.modal-content {
  width: 100%;
}

.modal-body {
  padding: 2rem;
}

.modal-body .container {
  max-width: 100%;
  padding: 0;
}

@media (max-width: 1399.98px) {
  .modal-dialog.modal-xl {
    padding: 0 calc((100% - 1140px) / 2);
  }
}

@media (max-width: 1199.98px) {
  .modal-dialog.modal-xl {
    padding: 0 calc((100% - 960px) / 2);
  }
}

@media (max-width: 991.98px) {
  .modal-dialog.modal-xl {
    padding: 0 calc((100% - 720px) / 2);
  }
}

@media (max-width: 767.98px) {
  .modal-dialog.modal-xl {
    padding: 0 1rem;
    margin: 1rem auto;
  }
}

/* Feature styling in modals */
.features-list {
  width: 100%;
  margin-top: 10px;
  padding-left: 0;
}

.features-list li {
  padding-left: 0;
  margin-bottom: 15px;
}

.features-list li:before {
  content: none;
}

/* Improved feature content styling */
.feature-content {
  display: flex;
  align-items: center;
  width: 100%;
}

/* MUCH smaller badge circles for list items */
.badge-center,
.badge.badge-center {
  width: 14px !important;
  height: 14px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  min-width: 14px !important;
  position: relative !important;
}

/* Tiny check icons */
.badge-center i.bx,
.badge.badge-center i.bx {
  font-size: 0.45rem !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

/* Feature text should have less margin with the extremely small icon */
.feature-text {
  flex: 1;
  font-size: 0.95rem;
  margin-left: 3px;
}

/* Feature description styling with adjusted margin */
.feature-description {
  font-size: 0.8rem;
  color: #6c757d;
  margin-left: 22px;
  margin-top: 5px;
}

/* Apply yellow border and shadow to ALL main plan cards in modals */
.modal-body .card {
  border: 1px solid #ffc107 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.modal-body .card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

/* Revert subplan entries to left-border only style (like modal headers) */
.subplan-entry {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-left: 4px solid #ffc107 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  position: relative;
  overflow: hidden;
}

/* Make certain subplan cards match their parent card style with left border only */
#basicPlansModal .subplan-entry {
  border-left-color: #28a745 !important;
  /* Green left border for Basic plans */
}

#vipPlansModal .subplan-entry {
  border-left-color: #ffc107 !important;
  /* Yellow left border for VIP plans */
}

#superVipPlansModal .subplan-entry {
  border-left-color: #ffc107 !important;
  /* Yellow left border for Super VIP plans */
}

/* Plan card styling in modals */
.plan-card {
  height: 100%;
  box-shadow: 0 4px 24px 0 rgba(34, 41, 47, 0.1);
  transition: all 0.3s ease-in-out;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.plan-logo {
  max-width: 80px;
  margin-bottom: 10px;
}

.plan-price {
  color: #28a745;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 5px 0;
}

.price-yearly-display {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Toggle subplans button styling */
.toggle-subplans {
  background: transparent;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 6px 12px;
  margin: 10px 0;
  color: #495057;
  cursor: pointer;
  font-size: 0.9rem;
}

.toggle-subplans:hover {
  background-color: #f8f9fa;
}

/* Improved modal header styling */
.modal-header {
  padding: 1.25rem 1.5rem !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.modal-header.bg-success,
.modal-header.bg-primary,
.modal-header.bg-warning {
  background: linear-gradient(to right, var(--bs-modal-bg), var(--bs-modal-bg)) !important;
  border-left: 4px solid currentColor !important;
}

.modal-header.bg-success {
  color: #28a745 !important;
}

.modal-header.bg-primary {
  color: #007bff !important;
}

.modal-header.bg-warning {
  color: #ffc107 !important;
}

.modal-title {
  font-weight: 600 !important;
  font-size: 1.2rem !important;
}

.modal-header .btn-close {
  padding: 0.5rem !important;
  margin: -0.5rem -0.5rem -0.5rem auto !important;
  opacity: 0.5 !important;
  transition: opacity 0.2s !important;
}

.modal-header .btn-close:hover {
  opacity: 0.75 !important;
}

/* Add new styles for loading state */
.min-vh-30 {
  min-height: 30vh;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.modal-body .loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30vh;
  width: 100%;
}

.modal-body .loading-content {
  text-align: center;
}

.fw-medium {
  font-weight: 500;
}
