/* Plan Badge and Upgrade Popup Styles */

/* Plan Badge */
.plan-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-badge.free {
  background-color: #676767;
  color: #fff;
}

.plan-badge.free:hover {
  background-color: #898989;
}

.plan-badge.premium {
  background-color: #ffcc00;
  color: #333;
}

.plan-badge.premium:hover {
  background-color: #ffc000;
}

/* Upgrade Popup */
.upgrade-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex !important; /* Override any inline display property */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.upgrade-popup.active {
  opacity: 1;
  visibility: visible;
  display: flex !important; /* Ensure visibility when active */
}

.upgrade-popup-content {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.upgrade-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
}

.upgrade-popup-close:hover {
  color: #333;
}

.upgrade-popup-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
}

.upgrade-popup-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}

.premium-features {
  margin-bottom: 24px;
}

.premium-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.premium-feature-icon {
  color: #ffcc00;
  margin-right: 12px;
  font-size: 20px;
}

.premium-feature-text {
  font-size: 14px;
  color: #333;
}

.upgrade-button {
  background-color: #ffcc00;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.upgrade-button:hover {
  background-color: #ffc000;
}

.manage-subscription-button {
  background-color: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  margin-top: 12px;
}

.manage-subscription-button:hover {
  background-color: #e0e0e0;
}
