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

/* RTL Support */
@layer base {
  /* RTL body styles */
  body.rtl {
    direction: rtl;
    text-align: right;
  }

  body.ltr {
    direction: ltr;
    text-align: left;
  }

  /* RTL form elements */
  body.rtl input,
  body.rtl textarea,
  body.rtl select {
    text-align: right;
  }

  /* RTL navigation and layout adjustments */
  body.rtl .container {
    direction: rtl;
  }

  /* RTL button and icon positioning */
  body.rtl .flex-row-reverse {
    flex-direction: row-reverse;
  }

  /* RTL margin and padding adjustments for common patterns */
  body.rtl .ml-auto {
    margin-left: unset;
    margin-right: auto;
  }

  body.rtl .mr-auto {
    margin-right: unset;
    margin-left: auto;
  }

  /* RTL text alignment overrides */
  body.rtl .text-left {
    text-align: right;
  }

  body.rtl .text-right {
    text-align: left;
  }

  /* RTL float adjustments */
  body.rtl .float-left {
    float: right;
  }

  body.rtl .float-right {
    float: left;
  }

  /* RTL flex direction adjustments */
  body.rtl .flex-row {
    flex-direction: row-reverse;
  }

  /* RTL space adjustments */
  body.rtl .space-x-2 > * + * {
    margin-left: 0;
    margin-right: 0.5rem;
  }

  body.rtl .space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
  }

  body.rtl .space-x-6 > * + * {
    margin-left: 0;
    margin-right: 1.5rem;
  }

  body.rtl .space-x-8 > * + * {
    margin-left: 0;
    margin-right: 2rem;
  }

  /* RTL padding adjustments for common patterns */
  body.rtl .pl-2 {
    padding-left: 0;
    padding-right: 0.5rem;
  }

  body.rtl .pl-4 {
    padding-left: 0;
    padding-right: 1rem;
  }

  body.rtl .pr-2 {
    padding-right: 0;
    padding-left: 0.5rem;
  }

  body.rtl .pr-4 {
    padding-right: 0;
    padding-left: 1rem;
  }
}

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
