@import "@fortawesome/fontawesome-free/css/all";
@import "flag-icons/css/flag-icons.min";

/* all @import must be above this line */

@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";


@layer components {
  .label {
      @apply flex flex-row items-center px-2 py-0.5 rounded border ;
  }

  .ds-item-card.current {
      @apply shadow-lg dark:border-sky-600;
  }

  .elm-datepicker--input {
      @apply pl-10 placeholder-gray-400 bg-blue-50 dark:text-slate-200 dark:bg-slate-700 dark:border-slate-500 border-gray-500 rounded w-full;
  }

  .elm-datepicker--container {
      @apply w-full;
  }
  .elm-datepicker--picker {
      @apply absolute top-11 z-50 bg-white dark:bg-slate-800 w-full flex flex-col border border-gray-300 dark:border-slate-500 shadow-lg;
  }
  .elm-datepicker--picker-header {
      @apply flex flex-row items-center py-2 bg-blue-50 dark:bg-slate-700;
  }
  .elm-datepicker--prev-container {
      @apply flex-none px-2;
  }
  .elm-datepicker--prev {
      @apply fa fa-chevron-left inline-flex block px-2 py-2 focus:outline-none hover:opacity-75;
  }
  .elm-datepicker--month-container {
      @apply flex-grow px-2 flex flex-col space-y-1 items-center;
  }
  .elm-datepicker--next-container {
      @apply px-2;
  }
  .elm-datepicker--next {
      @apply fa fa-chevron-right inline-flex block px-2 py-2 focus:outline-none hover:opacity-75;
  }
  .elm-datepicker--year-menu {
      @apply dark:text-slate-200 dark:bg-slate-600 dark:border-slate-400 rounded text-sm py-1 focus:ring focus:ring-black focus:ring-opacity-50 focus:ring-offset-0 dark:focus:ring-slate-400;
  }

  .elm-datepicker--table {
      @apply border-collapse w-full text-lg;
  }
  .elm-datepicker--weekdays {
      @apply font-semibold text-sm  border-0 border-b dark:border-slate-500;
  }
  .elm-datepicker--year {
      @apply h-8;
  }
  .elm-datepicker--dow  {
      @apply px-1 py-1 text-center;
  }
  .elm-datepicker--day {
      @apply cursor-pointer text-center hover:underline;
  }
  .elm-datepicker--day.elm-datepicker--other-month {
      @apply opacity-50;
  }
  .elm-datepicker--day.elm-datepicker--today {
      @apply border-2 rounded-full border-blue-500 dark:border-sky-500 h-5/6 w-5/6 flex items-center justify-center ;
  }


  .markdown-preview h4,h5,h6 {
      @apply text-lg font-semibold mb-2;
  }
  .markdown-preview h3 {
      @apply text-xl font-semibold mb-2;
  }
  .markdown-preview h2 {
      @apply text-2xl font-semibold mb-2;
  }
  .markdown-preview h1 {
      @apply text-3xl font-semibold mt-3 mb-5 tracking-wide;
  }
  .markdown-preview ul {
      @apply list-disc py-2 ml-4;
  }
  .markdown-preview ol {
      @apply list-decimal py-2 ml-4;
  }
  .markdown-preview p {
      @apply py-2;
  }
  .markdown-preview a {
      @apply text-blue-400 hover:text-blue-500 dark:text-sky-200 dark:hover:text-sky-100 cursor-pointer;
  }
}

@layer utilities {
    .disabled {
        @apply opacity-50 cursor-not-allowed;
    }
    .h-screen-10 {
        height: calc(100vh - 2.5rem);
    }
    .h-screen-11 {
        height: calc(100vh - 2.75rem);
    }
    .h-screen-12 {
        height: calc(100vh - 3rem);
    }
    .min-h-screen-12 {
        min-height: calc(100vh - 3rem);
    }
    .h-full-10 {
        height: calc(100% - 2.5rem);
    }
    .h-full-11 {
        height: calc(100% - 2.75rem);
    }
    .h-full-12 {
        height: calc(100% - 3rem);
    }
    .z-35 {
        z-index: 35;
    }

    .min-h-preview {
        min-height: 10rem;
    }

    .h-screen-5\/6 {
        height: 83.3333vh;
    }


    .min-h-7 {
        min-height: 1.75rem;
    }

    .scrollbar-none {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    /* Chrome, Safari and Opera */
    .scrollbar-none::-webkit-scrollbar {
        display: none;
    }

    .scrollbar-thin {
        scrollbar-width: thin;
    }
    .scrollbar-thin::-webkit-scrollbar {
        width: 8px;
    }

    .scrollbar-dark-sidebar {
        scrollbar-color: rgba(15,23,42,0.9) rgba(15,23,42,0.3);
    }
    .scrollbar-light-sidebar {
        scrollbar-color: rgba(219, 234, 254, 1.0) rgba(219, 234, 254,0.3);
    }
    .scrollbar-main {
        scrollbar-color: rgba(156, 163, 175,0.9) rgba(156, 163, 175,0.3);
    }

    .scrollbar-dark-sidebar::-webkit-scrollbar {
        background-color: rgba(15,23,42,0.3);
    }
    .scrollbar-dark-sidebar::-webkit-scrollbar-thumb {
        background: rgba(15,23,42,0.9);
    }

    .scrollbar-light-sidebar::-webkit-scrollbar {
        background-color: rgba(219, 234, 254, 0.3);
    }
    .scrollbar-light-sidebar::-webkit-scrollbar-thumb {
        background: rgba(219, 234, 254, 1.0);
    }

    .scrollbar-main::-webkit-scrollbar {
        background-color: rgba(156, 163, 175, 0.3);
    }
    .scrollbar-main::-webkit-scrollbar-thumb {
        background:  rgba(156, 163, 175, 0.9);
    }

    .ds-card-search-hl strong {
        @apply bg-lime-200 dark:bg-sky-700 italic font-bold px-1;
    }
}
