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

:root {
  font-family: 'Inter', sans-serif;
}

/* Add some global smoothness and better font rendering */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

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

[dir="rtl"] .flex-row {
  flex-direction: row-reverse;
}

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

/* Custom styles for better UI */
@layer components {
    .btn-primary {
        @apply w-full bg-amber-600 text-white px-4 py-2.5 rounded-lg font-semibold hover:bg-amber-700 disabled:bg-gray-400 disabled:cursor-not-allowed transition-all duration-200;
    }
}

/* Persian Font */
[lang="fa"] {
  font-family: 'Vazirmatn', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .card {
    padding: 1rem;
  }
  h2 {
    font-size: 1.75rem; /* Larger title on mobile */
  }
}

/* Code block styling */
pre {
  white-space: pre-wrap;
  word-break: break-all;
}
