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

@layer base {
  h1 {
    @apply mb-4 text-2xl font-bold text-indigo-900;
  }

  h2 {
    @apply my-2 text-xl font-bold text-indigo-900;
  }

  html {
    @apply text-indigo-950;
  }

  table thead {
    @apply text-left;
  }

  table {
    @apply min-w-full border-collapse;
  }

  th, td {
    @apply px-2 py-2 border-b border-indigo-50;
  }

  th {
    @apply text-sm font-semibold text-left uppercase bg-indigo-300;
  }

  td {
    @apply text-sm;
  }

  tr:nth-child(even) td {
    @apply bg-indigo-100;
  }

  tr:hover td {
    @apply bg-indigo-200;
  }

  a {
    @apply text-indigo-600;
  }
}

@layer components {
  .button {
    @apply inline-block px-4 py-2 mt-4 mb-4 text-white bg-indigo-500 rounded;
  }

  .back-button {
    @apply inline-block px-4 py-2 mt-4 mb-4 bg-indigo-100 rounded text-indigo-950;
  }
}

.field_with_errors {
  @apply inline-block border-2 border-red-500 w-full;
}
/*
 * 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.
 *


 */
