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

/* Softer alerts than daisyUI's solid defaults, left-aligned on small screens too. */
@layer components {
  .alert {
    @apply justify-items-start text-left border;
  }
  .alert-info {
    @apply bg-info/10 border-info/30 text-base-content;
  }
  .alert-success {
    @apply bg-success/10 border-success/30 text-base-content;
  }
  .alert-warning {
    @apply bg-warning/10 border-warning/40 text-base-content;
  }
  .alert-error {
    @apply bg-error/10 border-error/30 text-base-content;
  }
}

/* Let the hidden attribute win over display utilities like `grid` or `flex` (used by Stimulus toggles). */
@layer base {
  [hidden]:not([hidden='until-found']) {
    display: none !important;
  }
}

/* @tailwindcss/forms adds vertical padding to inputs/selects; daisyUI's small sizes have a fixed
   height, so that padding clipped their text. */
@layer components {
  .select-sm,
  .select-xs,
  .input-sm,
  .input-xs {
    @apply py-0;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS 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/SCSS
 * 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.
 *


 */
