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

/*

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

.pagy-nav.pagination {
  @apply isolate inline-flex -space-x-px rounded-md shadow-sm bg-gray-100 dark:bg-gray-700;
}

.page.next a {
  @apply relative inline-flex items-center rounded-r-md border border-gray-300 dark:border-gray-900 bg-gray-100 dark:bg-gray-700 px-2 py-2 text-sm font-medium text-gray-500 dark:text-white hover:bg-gray-50 focus:z-20;
}

.page.prev a {
  @apply relative inline-flex items-center rounded-l-md border border-gray-300 dark:border-gray-900 bg-gray-100 dark:bg-gray-700 px-2 py-2 text-sm font-medium text-gray-500 dark:text-white hover:bg-gray-50 focus:z-20;
}

.page.next.disabled {
  @apply relative inline-flex items-center rounded-r-md border border-gray-300 bg-slate-100 dark:border-gray-500 dark:bg-gray-800 dark:hover:bg-gray-700 px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20;
}

.page.prev.disabled {
  @apply relative inline-flex items-center rounded-l-md border border-gray-300 bg-slate-100 dark:border-gray-500 dark:bg-gray-800 dark:hover:bg-gray-700 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20;
}

.page a,
.page.gap {
  @apply bg-gray-100 dark:bg-gray-600 border-gray-300 dark:border-gray-800 text-gray-500 dark:text-white hover:bg-gray-50 relative inline-flex items-end border px-4 py-2 text-sm font-medium focus:z-20;
}

.page.active {
  @apply z-10 border-blue-600 bg-blue-500 text-white relative inline-flex items-center border px-4 py-2 text-sm font-medium focus:z-20;
}
/*
 * 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.
 *


 */

 ::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }
  
  /* For Firefox */
  ::-moz-scrollbar {
    width: 0px;
    height: 0px;
  }
  
  /* For Microsoft Edge and Internet Explorer */
  ::-ms-scrollbar {
    width: 0px;
    height: 0px;
  }
  
  /* Customize the appearance of the scrollbar track */
  ::-webkit-scrollbar-track {
    background-color: transparent;
    /* Change to your desired color */
  }
  
  /* Customize the appearance of the scrollbar thumb */
  ::-webkit-scrollbar-thumb {
    background-color: #f1f1f1;
    /* Change to your desired color */
  }

  .flash {  
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    max-width: 100%;
    width: max-content;
    z-index: 100;
    animation: appear-then-fade 4s both;
  }

  .web-flash {
    position: fixed;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    max-width: 100%;
    width: max-content;
    z-index: 100;
  }

  .message {
    font-size: 14px;
    animation: appear-then-fade 4s both;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  @keyframes appear-then-fade {

    0%,
    100% {
      opacity: 0
    }
  
    5%,
    60% {
      opacity: 1
    }
  }

  .zigzag-div {
    position: relative;
  }

  .zigzag-div:after {
      background: linear-gradient(-45deg, #ffffff 16px, transparent 0), linear-gradient(45deg, #ffffff 16px, transparent 0);
      background-position: left-bottom;
      background-repeat: repeat-x;
      background-size: 32px 32px;
      content: " ";
      display: block;
      position: absolute;
      bottom: 0px;
      left: 0px;
      width: 100%;
      height: 32px;
  }
  .zigzag-div:before {
    background: linear-gradient(-45deg, #dc2626 16px, transparent 0), linear-gradient(45deg, #dc2626 16px, transparent 0);
    background-repeat: repeat-x;
    background-size: 32px 32px;
    content: " ";
    display: block;
    position: absolute;
    top: -32px;
    left: 0px;
    width: 100%;
    height: 32px;
}
