/* Custom CSS for FileConvert Pro */

/* RTL Support */
html[dir="rtl"] {
  text-align: right;
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

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

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* File upload area */
.file-upload-area {
  border: 2px dashed #cbd5e1;
  transition: all 0.3s ease;
}

.file-upload-area:hover {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

.file-upload-area.dragover {
  border-color: #2563eb;
  background-color: #eff6ff;
  transform: scale(1.02);
}

/* Progress bar */
.progress-bar {
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 8px;
  transition: width 0.5s ease;
}

/* Card hover effects */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button animations */
.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Loading spinner */
.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Feature icons */
.feature-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pricing cards */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.pricing-popular {
  border: 2px solid #3b82f6;
  position: relative;
  transform: scale(1.05);
}

.pricing-popular::after {
  content: 'الأكثر شعبية';
  position: absolute;
  top: 20px;
  right: -30px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 5px 40px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(45deg);
}

/* Stats counters */
.stats-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .stats-number {
    font-size: 2rem;
  }
  
  .pricing-popular {
    transform: none;
    margin: 20px 0;
  }
  
  html[dir="rtl"] .pricing-popular::after {
    right: -25px;
    padding: 5px 30px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
button:focus, 
input:focus, 
select:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Success/Error states */
.success-state {
  border-color: #10b981;
  background-color: #ecfdf5;
}

.error-state {
  border-color: #ef4444;
  background-color: #fef2f2;
}