@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;
}

.page.next a {
  @apply relative inline-flex items-center rounded-r-md border border-gray-300 bg-white 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 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 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 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 border-gray-300 text-gray-500 hover:bg-gray-50 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 bg-indigo-50 text-indigo-600 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: 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
  }
}

/* css for emoji */

.picmo__popupContainer,
.picmo__light,
.picmo__picker.picmo__picker {
  height: 200px !important;
  width: 200px !important;
  gap: 4px !important;
}

.dark .picmo__popupContainer,
.dark .picmo__picker.picmo__picker {
  background-color: black;
  color: white;
  height: 200px !important;
  width: 200px !important;
  gap: 4px !important;
}

.picmo__picker .picmo__searchContainer,
.picmo__categoryButtons {
  height: 20px !important;
  padding: 0px !important;
  margin: 0px !important;
  gap: 0px !important;
}

.dark .picmo__picker .picmo__searchContainer,
.dark .picmo__categoryButtons {
  background-color: black;
  color: white;
}

.picmo__header {
  padding: 5px !important;
  gap: 8px !important;
  gap: 4px !important;
}

.dark .picmo__header {
  background-color: black;
  color: white;
}

.picmo__categoryTab button.picmo__categoryButton {
  width: 20px !important;
  height: 20px !important;
}

.picmo__content {
  height: '90%' !important;
  overflow: auto !important;
  padding-bottom: 10px !important;
}

.picmo__picker .picmo__emojiArea {
  margin-bottom: 10px !important;
}

.picmo__picker .picmo__preview {
  display: none;
}

.picmo__picker .picmo__error {
  height: '90%' !important;
}

.picmo__picker .picmo__error .picmo__icon {
  height: 50px !important;
  width: 50px !important;
}

.picmo__picker .picmo__searchContainer .picmo__searchField {
  font-size: 12px !important;
}

.dark .picmo__picker .picmo__searchContainer .picmo__searchField,
.dark .picmo__picker .picmo__searchContainer .picmo__searchField:focus {
  background-color: black;
  color: white;
}

.picmo__picker .picmo__emojiCategory .picmo__categoryName {
  font-size: 12px !important;
}

.dark .picmo__picker .picmo__emojiCategory .picmo__categoryName {
  background-color: black;
  color: white;
}

.picmo__picker .picmo__searchContainer .picmo__searchAccessory {
  right: 0 !important;
}

/* heatmap calendar */
.heatmap-calendar {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 5px;
  padding: 5px;
}

.employee-filter-section {
  margin-bottom: 24px;
}

.filter-header {
  margin-bottom: 10px;
}

.filter-description {
  color: #718096;
  margin: 0;
  font-size: 0.9rem;
}

.employee-filter-form {
  width: 100%;
}

.filter-controls {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.form-select {
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #4299e1;
  color: white;
}

.btn-primary:hover {
  background-color: #3182ce;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background-color: #cbd5e0;
}

@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group {
    min-width: 100%;
  }

  .form-actions {
    margin-top: 16px;
  }
}
