/* نظام شرعوب المحاسبي - ملف الأنماط الرئيسي */
/* Sharaub Accounting System - Main Styles */

@tailwind base;
@tailwind components;
@tailwind utilities;

/* تحسينات الخطوط العربية - Arabic Font Improvements */
@layer base {
  * {
    font-family: 'ArabicFont', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
  }

  body {
    @apply antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* مكونات مخصصة - Custom Components */
@layer components {
  /* بطاقات مع تأثيرات - Cards with Effects */
  .card-hover {
    @apply transition-all duration-300 hover:shadow-xl hover:-translate-y-1;
  }
  
  /* أزرار مخصصة - Custom Buttons */
  .btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
  }
  
  .btn-secondary {
    @apply bg-slate-200 hover:bg-slate-300 dark:bg-slate-700 dark:hover:bg-slate-600 text-slate-900 dark:text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
  }
  
  /* حقول الإدخال - Input Fields */
  .input-field {
    @apply w-full px-3 py-2 border border-slate-300 dark:border-slate-600 rounded-lg bg-white dark:bg-slate-800 text-slate-900 dark:text-white focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200;
  }
  
  /* جداول - Tables */
  .table-container {
    @apply overflow-x-auto rounded-lg border border-slate-200 dark:border-slate-700;
  }
  
  .table-header {
    @apply bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-300 font-semibold;
  }
  
  .table-row {
    @apply border-b border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 transition-colors duration-150;
  }
}

/* أدوات مساعدة - Utilities */
@layer utilities {
  /* تأثيرات التدرج - Gradient Effects */
  .gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }
  
  .gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }
  
  .gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  }
  
  /* ظلال مخصصة - Custom Shadows */
  .shadow-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  
  .shadow-glow-green {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  }
  
  /* حركات - Animations */
  .animate-fade-in {
    animation: fadeIn 0.3s ease-in;
  }
  
  .animate-slide-up {
    animation: slideUp 0.3s ease-out;
  }
  
  .animate-scale-in {
    animation: scaleIn 0.2s ease-out;
  }
}

/* تعريفات الحركات - Animation Definitions */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* تحسينات شريط التمرير - Scrollbar Improvements */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  @apply bg-slate-100 dark:bg-slate-800;
}

::-webkit-scrollbar-thumb {
  @apply bg-slate-400 dark:bg-slate-600 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
  @apply bg-slate-500 dark:bg-slate-500;
}

/* تحسينات الطباعة - Print Improvements */
@media print {
  body {
    @apply bg-white text-black;
  }
  
  .no-print {
    display: none !important;
  }
}

