/* ===== Premium Limit Modal Styles ===== */

.premium-limit-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.premium-limit-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-limit-modal {
  background: #ffffff;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  position: relative;
  margin: auto;
  border: 1px solid #ddd;
  text-align: center;
  padding: 30px;
}

/* Header */
.premium-limit-header {
  padding: 0;
  color: #333;
}

.premium-limit-icon {
  display: none; /* Hide icon for simplicity */
}

.premium-limit-header h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.premium-limit-subtitle {
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  opacity: 0.85;
  line-height: 1.5;
}

/* Content */
.premium-limit-content {
  padding: 20px 0;
}

.file-info-box {
  padding: 0;
  margin-bottom: 20px;
}

.file-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.file-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.file-info-label {
  font-weight: 600;
  color: #666;
  font-size: 14px;
}

.file-info-value {
  font-weight: 700;
  color: #333;
  font-size: 15px;
}

.file-info-value.limit {
  color: #9370DB;
}

/* Suggestions */
.premium-limit-suggestions {
  padding: 0;
  margin-bottom: 20px;
}

.premium-limit-suggestions h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #555;
  font-weight: 700;
}

.premium-limit-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-limit-suggestions li {
  padding: 8px 0;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

/* Note */
.premium-limit-note {
  padding: 0;
  margin-top: 20px;
}

.premium-limit-note p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.premium-limit-note strong {
  font-weight: 700;
}

/* Action buttons */
.premium-limit-actions {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-limit-btn-primary {
  width: 100%;
  padding: 14px 28px;
  background: #8A2BE2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.premium-limit-btn-primary:hover {
  background: #7B1FA2;
}

.premium-limit-btn-secondary {
  width: 100%;
  padding: 12px 28px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.premium-limit-btn-secondary:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  color: #333;
}

/* Footer */
.premium-limit-footer {
  padding: 15px 30px;
  text-align: center;
}

.premium-limit-footer p {
  margin: 0;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

/* Dark mode support */
body.dark-mode .premium-limit-modal {
  background: #252525;
  border-color: #444;
}

body.dark-mode .premium-limit-header,
body.dark-mode .premium-limit-content,
body.dark-mode .premium-limit-actions {
  background: transparent;
  border: none;
}

body.dark-mode .file-info-box,
body.dark-mode .premium-limit-suggestions,
body.dark-mode .premium-limit-note {
  background: transparent;
  border: none;
}

body.dark-mode .file-info-item {
    border-bottom-color: #444;
}

body.dark-mode .file-info-label {
  color: #bbb;
}

body.dark-mode .file-info-value {
  color: #f1f1f1;
}

body.dark-mode .premium-limit-suggestions h3 {
  color: #e0e0e0;
}

body.dark-mode .premium-limit-suggestions li {
  color: #ccc;
}

body.dark-mode .premium-limit-note p {
  color: #CE93D8;
}

body.dark-mode .premium-limit-btn-primary {
  background: #9370DB;
}

body.dark-mode .premium-limit-btn-primary:hover {
  background: #8A2BE2;
}

body.dark-mode .premium-limit-btn-secondary {
  background: transparent;
  color: #f1f1f1;
  border-color: #555;
}

body.dark-mode .premium-limit-btn-secondary:hover {
  background: #333;
  border-color: #666;
}

body.dark-mode .premium-limit-footer p {
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .premium-limit-modal {
    max-width: 95%;
    margin: 20px;
  }
  
  .premium-limit-header {
    padding: 20px;
  }
  
  .premium-limit-header h2 {
    font-size: 20px;
  }
  
  .premium-limit-subtitle {
    font-size: 14px;
  }
  
  .premium-limit-content {
    padding: 20px;
  }
  
  .premium-limit-actions {
    padding: 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .premium-limit-header h2 {
    font-size: 18px;
  }
  
  .file-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
