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

/*

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

*/

@layer components {

  .halfSidebar {
    @apply fixed hidden md:flex bottom-0 left-0 h-screen w-24 m-0 flex flex-col bg-white dark:bg-gray-800 text-white shadow-lg z-20 transition-all duration-300 pt-6;
  }

  .sidebar-icon {
    @apply relative flex items-center justify-center h-12 w-12 mx-auto my-2 dark:bg-gray-900 bg-gray-100 text-gray-500 hover:bg-white dark:hover:bg-gray-700 hover:text-day-primary rounded-3xl hover:rounded-xl hover:shadow-lg hover:border hover:border-gray-200 transition-all duration-300 ease-linear cursor-pointer;
  }



  .sidebar-active-icon {
    @apply relative flex items-center justify-center h-12 w-12 mx-auto my-2 bg-white dark:bg-gray-600 shadow-lg border border-gray-200 text-day-primary dark:text-gray-800 rounded-xl transition-all duration-300 ease-linear cursor-pointer;
  }


  .fullSidebar {
    @apply fixed left-0 bottom-0 bg-white dark:bg-gray-800 h-screen w-60 z-20 flex flex-col hidden md:flex flex flex-col shadow border border-gray-200 transition-all duration-300 dark:border-0;
  }
}

.pagy-nav.pagination {
  @apply isolate inline-flex -space-x-px rounded-md shadow-sm;
}

.page.next a {
  @apply relative inline-flex items-center rounded-r-md border border-gray-300 bg-white 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 a {
  @apply relative inline-flex items-center rounded-l-md border border-gray-300 bg-white 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.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 px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20;
}

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

.page.active {
  @apply z-10 border-indigo-500 dark:border-gray-200 bg-indigo-50 dark:bg-gray-700 dark:text-white text-indigo-600 relative inline-flex items-center border px-4 py-2 text-sm font-medium focus:z-20;
}

/* @layer components {
  .sidebar-icon {
    @apply relative flex items-center justify-center h-12 w-12 mx-auto my-2 bg-gray-100 text-gray-500 hover:bg-gray-400 hover:text-white rounded-3xl hover:rounded-xl transition-all duration-300 ease-linear cursor-pointer;
  }

  .sidebar-tooltip {
    @apply absolute w-auto p-2 m-2 min-w-max left-14 rounded-md shadow-md text-white bg-gray-900 text-xs font-bold transition-all duration-300 scale-0 origin-left;
  }


  .sidebar-active-icon {
    @apply relative flex items-center justify-center h-12 w-12 mx-auto my-2 bg-blue-600 text-white rounded-xl transition-all duration-300 ease-linear cursor-pointer;
  }
} */
/*
 * 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.
 *


 */

#graph {
  min-width: 300px;
  width: auto;
}

#piechart1 {
  min-width: 240px;
  height: 200px;
  width: auto;
}

#piechart2 {
  min-width: 240px;
  height: 200px;
  width: auto;
}

::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

::-moz-scrollbar {
  width: 0px;
  height: 0px;
}

::-ms-scrollbar {
  width: 0px;
  height: 0px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #f1f1f1;
}

select option {
  padding-left: 0%;
}

.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
  }
}

.rating {
  unicode-bidi: bidi-override;
  direction: rtl;
  text-align: left;
}

.star-label {
  font-size: 2em;
  padding: 0 5px;
  color: #ddd;
  cursor: pointer;
}

.star-label:hover,
.star-label:hover~.star-label {
  color: #FFD700;
}
