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

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
@layer components {
  .model__errors {
    @apply flash__error p-4 rounded mb-4 font-bold flex items-center justify-between transition-opacity;
  }

  .flash__error {
    @apply bg-red-50 border border-red-400 text-red-800;
  }

  .flash__notice {
    @apply bg-blue-50 border border-blue-400 text-blue-800;
  }

  .flash__success {
    @apply bg-green-50 border border-green-400 text-green-800;
  }

  .flash__warning {
    @apply bg-yellow-50 border border-yellow-400 text-yellow-800;
  }

  .flash__default {
    @apply bg-gray-50 border border-gray-400 text-gray-800;
  }

  .nav__link {
    @apply block py-2 px-3 md:p-0 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-blue-700 md:dark:hover:text-blue-500 dark:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700;
  }
  .purchase__button {
    @apply inline-flex items-center px-3 py-2 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800;
  }

  .purchase__input {
    @apply bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500;
  }

  .purchase__label {
    @apply block mb-2 text-sm font-medium text-gray-900 dark:text-white;
  }

  .table__main {
    @apply w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400;
  }

  .table__head {
    @apply text-xs text-gray-700 uppercase bg-blue-300 dark:bg-blue-700 dark:text-gray-400;
  }

  .table__row {
    @apply odd:bg-white odd:dark:bg-gray-900 even:bg-blue-50 even:dark:bg-gray-800 border-b dark:border-gray-700;
  }

  .table__rowitem {
    @apply px-6 py-4 font-bold;
  }
}
/*
 * 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.
 *


 */
