/* Commercial Features Styles for EasyNote */

/* Usage Widget */
.usage-widget {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.usage-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.upgrade-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.usage-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-fill[style*="width: 100%"] {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-fill[style*="width: 9"]:not([style*="width: 100%"]),
.progress-fill[style*="width: 8"] {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.upgrade-reasons {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.upgrade-reasons h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.reason-item {
  margin-bottom: 0.5rem;
}

.reason-message {
  font-size: 0.75rem;
  color: #374151;
  margin-bottom: 0.125rem;
}

.reason-solution {
  font-size: 0.6875rem;
  color: #6b7280;
  font-style: italic;
}

/* Quality Indicator */
.quality-indicator {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.quality-score {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quality-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.quality-details {
  font-size: 0.625rem;
  color: #6b7280;
}

/* Pro Features */
[data-plan="free"] .pro-only {
  display: none !important;
}

[data-plan="pro"] .free-only {
  display: none !important;
}

.pro-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Meeting Template Selector */
.meeting-template-container {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.meeting-template-container label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.meeting-template-container select {
  width: 100%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.meeting-template-container select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modal Enhancements */
.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Usage Limit Modal */
.usage-limit-modal {
  max-width: 28rem;
}

.usage-limit-modal h2 {
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.upgrade-options {
  margin-top: 1.5rem;
}

.upgrade-options h3 {
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.upgrade-buttons {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.upgrade-premium-btn,
.promo-btn {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.upgrade-premium-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.upgrade-premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.promo-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .usage-stats {
    gap: 0.5rem;
  }
  
  .upgrade-buttons {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 1rem;
  }
}

/* Loading states */
.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.loading-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success states */
.success-indicator {
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.success-icon {
  width: 1rem;
  height: 1rem;
  background: #10b981;
  border-radius: 50%;
  position: relative;
}

.success-icon::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
}