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

@layer base {
  @font-face {
    font-family: 'wonder-kids';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/assets/wonder-kids-c90be8e0d1cf46b4853d27ae2a70672e7dc0f609ce249c3ad149d5792dfbcc42.ttf) format('truetype');
  }
  body {
    @apply text-black;
  }
  [multiple],[type=file],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea {
    @apply bg-white border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5 dark:bg-gray-800 dark:border-gray-700 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500;
  }
  input[type=submit] {
    @apply py-2 px-3 inline-flex items-center justify-center rounded-lg text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 border border-blue-700 w-full cursor-pointer;
  }
  label {
    @apply text-sm text-gray-500 dark:text-gray-400;
  }
}

@layer components {
  .btn-primary {
    @apply py-2 px-3 inline-flex items-center justify-center rounded-lg text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 border border-blue-700;
  }
  .btn-secondary {
    @apply inline-flex items-center px-4 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-200 rounded-lg hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700;
  }
  .btn-sm-secondary {
    @apply py-0.5 px-1.5 inline-flex items-center justify-center rounded-lg text-xs  font-medium text-gray-900 bg-white border border-gray-200 rounded-lg hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700;
  }
}

dialog.slideover[open] {
  animation: slide-in-from-right 200ms forwards ease-in-out;
}

dialog.slideover[closing] {
  pointer-events: none;
  animation: slide-out-to-right 200ms forwards ease-in-out;
}

@keyframes slide-in-from-right{
  from { transform: translateX(100%); }
}

@keyframes slide-out-to-right{
  to { transform: translateX(100%); }
}

.pagy {
  @apply flex space-x-1 font-medium text-sm text-gray-500;
  a:not(.gap) {
    @apply block rounded-lg px-4 py-2 bg-white border;
    &:hover {
      @apply bg-gray-300;
    }
    &:not([href]) { /* disabled links */
      @apply text-gray-300 bg-gray-50 cursor-default;
    }
    &.current {
      @apply text-blue-600 bg-gray-100;
    }
  }
}
/*
 * 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.
 *


 */
