/* Start.AI Custom Styles */

/* Fontes e tipografia */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Gradientes customizados */
.gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-success {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Animações */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Componentes personalizados */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(240, 147, 251, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
}

/* Progress bar personalizada */
.progress-bar {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  height: 8px;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Admin Sidebar Styles */
#sidebar {
  transition: transform 0.3s ease-in-out;
}

.nav-item {
  transition: all 0.2s ease;
  border-radius: 8px;
}

.nav-item:hover {
  background: rgba(147, 51, 234, 0.05);
}

.nav-item.active {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    height: 100vh;
    transform: translateX(-100%);
  }
  
  #sidebar.show {
    transform: translateX(0);
  }
}

/* Sidebar animations */
.sidebar-item {
  transition: all 0.2s ease;
  border-radius: 8px;
}

.sidebar-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(5px);
}

.sidebar-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Form styles */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.form-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modal styles */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

/* Responsive design helpers */
@media (max-width: 768px) {
  .mobile-padding {
    padding: 1rem;
  }
  
  .mobile-text-sm {
    font-size: 0.875rem;
  }
}

/* Dark mode styles */
.dark-mode {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}

/* Pricing card styles */
.pricing-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transition: left 0.3s ease;
}

.pricing-card:hover::before {
  left: 0;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Status badges */
.status-badge-free {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

.status-badge-premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Loading spinner */
.loading-spinner {
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Motivational phrases animations */
@keyframes motivational-bounce {
  0% { 
    transform: scale(0.3) rotate(-15deg); 
    opacity: 0; 
  }
  50% { 
    transform: scale(1.1) rotate(5deg); 
    opacity: 0.8;
  }
  100% { 
    transform: scale(1) rotate(0deg); 
    opacity: 1; 
  }
}

@keyframes motivational-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); 
  }
  50% { 
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6); 
  }
}

@keyframes slide-in-right {
  from { 
    transform: translateX(100%); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

.animate-slide-in {
  animation: slide-in-right 0.3s ease-out;
}

.motivational-modal {
  animation: motivational-bounce 0.8s ease-out;
}

.motivational-glow {
  animation: motivational-glow 2s ease-in-out infinite;
}

/* Success and error toasts */
.toast-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Help Tooltips */
.help-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.help-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -120px;
  width: 240px;
  background: #1f2937;
  color: #f9fafb;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.help-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

.help-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Alternative position for tooltips that might overflow */
.help-tooltip.tooltip-top .tooltip-text {
  bottom: auto;
  top: 125%;
}

.help-tooltip.tooltip-top .tooltip-text::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #1f2937 transparent;
}

.help-tooltip.tooltip-left .tooltip-text {
  top: -5px;
  left: auto;
  right: 125%;
  bottom: auto;
  margin-left: 0;
}

.help-tooltip.tooltip-left .tooltip-text::after {
  top: 50%;
  left: 100%;
  bottom: auto;
  margin-top: -5px;
  margin-left: 0;
  border-color: transparent transparent transparent #1f2937;
}

.help-icon {
  color: #6b7280;
  transition: color 0.2s ease;
}

.help-icon:hover {
  color: #4f46e5;
}

/* Form field with help icon container */
.field-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
}