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

@layer components {
  .btn {
    @apply rounded-md px-2.5 py-1.5 text-sm font-normal shadow-sm;
  }

  .btn-primary {
    @apply bg-indigo-600 text-white hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600;
  }

  .btn-xs {
    @apply rounded px-2 py-1 text-xs;
  }

  .link-primary {
    @apply text-indigo-500 hover:text-indigo-700 underline underline-offset-4;
  }

  .link-secondary {
    @apply text-gray-500 hover:text-gray-700 underline underline-offset-4;
  }

  .badge-primary {
    @apply inline-flex items-center rounded-md bg-indigo-100 px-2 py-1 text-xs font-medium text-indigo-700;
  }

  .badge-success {
    @apply inline-flex items-center rounded-md bg-green-100 px-2 py-1 text-xs font-medium text-green-700;
  }

  .badge-danger {
    @apply inline-flex items-center rounded-md bg-pink-100 px-2 py-1 text-xs font-medium text-pink-700;
  }

  .nav-link--active {
    @apply rounded-md bg-gray-900 px-3 py-2 text-sm font-medium text-white;
  }

  .nav-link {
    @apply rounded-md px-3 py-2 text-sm font-medium text-gray-300 hover:bg-gray-700 hover:text-white;
  }

  .tab-default {
    @apply border-b-2 border-transparent px-1 py-2 text-sm font-medium whitespace-nowrap text-gray-500 hover:border-gray-300 hover:text-gray-700;
  }

  .tab-current {
    @apply border-b-2 border-indigo-500 px-1 py-2 text-sm font-medium whitespace-nowrap text-indigo-600;
  }

  .tab2-default {
    @apply rounded-md px-3 py-2 text-sm font-medium text-gray-500 hover:text-gray-700;
  }

  .tab2-current {
    @apply rounded-md bg-indigo-100 px-3 py-2 text-sm font-medium text-indigo-700;
  }

  .tab3-default {
    @apply rounded-md px-3 py-2 text-sm font-medium text-gray-500 hover:text-gray-700;
  }

  .tab3-current {
    @apply rounded-md bg-gray-100 px-3 py-2 text-sm font-medium text-gray-700;
  }
}

.pagy {
  @apply flex space-x-1 font-semibold text-sm text-gray-500;
  a:not(.gap) {
    @apply block rounded-lg px-3 py-1 bg-gray-200;
    &:hover {
      @apply bg-gray-300;
    }
    &:not([href]) { /* disabled links */
      @apply text-gray-300 bg-gray-100 cursor-default;
    }
    &.current {
      @apply text-white bg-gray-400;
    }
  }
  label {
    @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
    input {
      @apply bg-gray-100 border-none rounded-md;
    }
  }
}
/*
 * 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.
 *


 */
