/* ARC APEX ReportCraft - Custom Styles */

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* Logo animations */
.logo-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-5px) rotate(12deg); }
}

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

[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

[dir="rtl"] .ml-auto {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .mr-auto {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .text-left {
  text-align: right;
}

[dir="rtl"] .text-right {
  text-align: left;
}

/* Arabic font support */
[lang="ar"] {
  font-family: 'Amiri', 'Times New Roman', serif;
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] h5, [lang="ar"] h6 {
  font-family: 'Cairo', 'Arial', sans-serif;
  font-weight: 600;
}

/* Chinese font support */
[lang="zh"] {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* Japanese font support */
[lang="ja"] {
  font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', 'Yu Gothic', sans-serif;
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

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

/* Custom button styles */
.btn-arc-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-arc-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-arc-secondary {
  background: transparent;
  border: 2px solid #2563eb;
  padding: 10px 22px;
  border-radius: 8px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-arc-secondary:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-1px);
}

/* Hero section enhancements */
.hero-gradient {
  background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

/* Feature cards */
.feature-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 24px;
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

/* Logo styling */
.arc-logo {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.arc-logo-squares {
  display: flex;
  gap: 2px;
  margin-right: 8px;
  transform: rotate(12deg);
}

.arc-logo-square {
  width: 16px;
  height: 20px;
  border-radius: 2px;
}

.arc-logo-square:nth-child(1) {
  background: #10b981; /* Green */
  transform: rotate(-12deg);
}

.arc-logo-square:nth-child(2) {
  background: #f59e0b; /* Orange */
  transform: rotate(6deg);
}

.arc-logo-square:nth-child(3) {
  background: #3b82f6; /* Blue */
  transform: rotate(-6deg);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .mobile-menu {
    display: none;
  }
  
  .mobile-menu.show {
    display: block;
  }
}

/* Pricing cards */
.pricing-card {
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-popular {
  border-color: #2563eb;
  box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.2);
}

/* Form styling */
.form-input {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.3s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* CMS Styles */
.cms-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  min-height: calc(100vh - 64px);
}

.cms-content {
  padding: 24px;
}

.cms-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Utility classes */
.text-arc-blue { color: #2563eb; }
.text-arc-green { color: #10b981; }
.text-arc-orange { color: #f59e0b; }

.bg-arc-blue { background-color: #2563eb; }
.bg-arc-green { background-color: #10b981; }
.bg-arc-orange { background-color: #f59e0b; }

.border-arc-blue { border-color: #2563eb; }

/* Smooth transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}