/* Quota Display Styles */

.quota-display {
  background-color: #2c3e50;
  color: white;
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 100px;
  margin-left: auto;
  cursor: pointer; /* Make it clickable to access subscription */
  transition: background-color 0.2s ease;
  user-select: none;
}

.quota-display:hover {
  background-color: #34495e;
}

.quota-count {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 2px;
}

.quota-label {
  font-size: 12px;
  opacity: 0.8;
}

.quota-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #3498db;
  border-radius: 0 0 6px 6px;
}

.quota-warning .quota-progress-bar {
  background-color: #e74c3c;
}

.quota-warning .quota-count {
  color: #e74c3c;
}

/* Subscription repair link */
.subscription-repair {
  margin-top: 5px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.repair-link {
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.repair-link:hover {
  background-color: #f57c00;
}

/* For mobile responsive design */
@media (max-width: 768px) {
  .quota-display {
    padding: 4px 8px;
    min-width: 80px;
  }
  
  .quota-count {
    font-size: 14px;
  }
  
  .quota-label {
    font-size: 10px;
  }
}

/* Quota Exceeded Modal */
.quota-modal {
  max-width: 800px;
}

.quota-message {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.quota-progress {
  margin: 15px auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 20px;
  position: relative;
  width: 80%;
  overflow: hidden;
}

.progress-bar {
  background-color: #e74c3c;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: white;
  font-weight: bold;
  mix-blend-mode: difference;
}

.quota-footer {
  text-align: center;
  margin-top: 20px;
  color: #aaa;
}