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

@layer components {
  body {
    @apply bg-gray-200 dark:bg-gray-900 text-gray-900 dark:text-gray-100 font-sans leading-normal tracking-normal pt-14 pb-20 md:pb-0;
  }
  
  .pagination * {
    @apply px-3 py-2 mx-2;
    @apply text-gray-700 no-underline bg-white rounded-lg;
  }

  .pagination a:hover {
    @apply font-semibold text-gray-200 bg-gray-700;
  }

  .field-label {
    @apply block text-sm font-medium text-gray-900 dark:text-white;
  }

  .input {
    @apply mt-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500;
  }

  .button {
    @apply flex pointer-events-auto rounded-lg px-2 md:px-4 py-1 md:py-2 text-center font-medium shadow-sm text-white dark:text-black bg-amber-500 hover:bg-amber-600 dark:hover:bg-amber-400;
  }

  .mini-button {
    @apply flex pointer-events-auto rounded-lg px-2 md:px-3 py-0 text-center shadow-sm text-white dark:text-black bg-amber-500 hover:bg-amber-600 dark:hover:bg-amber-400;
  }

  .action {
    @apply inline-flex items-center justify-center px-4 py-2.5 bg-gray-800 hover:bg-gray-700 focus:outline-none text-white rounded-lg dark:bg-gray-800 dark:hover:bg-gray-900 text-sm md:text-base;
  }

  .mini-action {
    @apply inline-flex items-center justify-center px-2 py-1 bg-gray-800 hover:bg-gray-700 focus:outline-none text-white rounded-lg dark:bg-gray-800 dark:hover:bg-gray-900 text-xs md:text-sm;
  }

  .submit {
    @apply text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800;
  }

  .notice {
    @apply p-4 m-4 text-sm text-green-800 border border-green-300 rounded-lg bg-green-50 dark:bg-gray-800 dark:text-green-400 dark:border-green-800;
  }

  .error {
    @apply p-4 m-4 text-sm text-red-800 border border-red-300 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400 dark:border-red-800;
  }

  .notice:empty {
    display: none;
  }

  .header-wrapper {
    @apply bg-gray-200 dark:bg-gray-900;
  }

  .header-body {
    @apply flex flex-row md:rounded-tr-3xl bg-gray-100 dark:bg-gray-950 p-4 text-gray-800 dark:text-white;
  }

  .header-title {
    @apply flex flex-grow font-bold text-2xl pl-2;
  }

  .divider {
    @apply divide-y divide-gray-100 dark:divide-gray-950;
  }

  .cell {
    @apply px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4;
  }

  .cell-key {
    @apply font-medium leading-6 text-gray-500 dark:text-gray-200;
  }

  .cell-value {
    @apply mt-1 leading-6 text-gray-900 dark:text-gray-100 sm:col-span-2 sm:mt-0;
  }

  .card-wrapper {
    @apply flex items-center justify-center w-full md:my-12;
  }

  .card-body {
    @apply flex items-center justify-center text-center flex-col m-4 p-6 bg-white dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-lg shadow text-gray-800 dark:text-gray-100;
  }

  .list-link {
    @apply flex justify-between py-2 px-4 bg-white hover:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700;
  }

  .mini-list-link {
    @apply flex justify-between py-2 px-2 hover:bg-gray-100 dark:hover:bg-gray-600;
  }

  .badge {
    @apply inline-flex items-center justify-center w-4 h-4 ms-1 text-xs font-semibold text-blue-800 bg-blue-200 rounded-full;
  }

  .list-right {
    @apply flex items-center gap-x-4;
  }

  .list-left {
    @apply shrink-0 sm:flex sm:flex-col sm:items-end;
  }

  .list-title {
    @apply text-sm font-semibold leading-6 text-gray-900 dark:text-gray-100;
  }

  .list-description {
    @apply mt-1 truncate text-xs leading-5 text-gray-500 dark:text-gray-200;
  }

  .list-l-title {
    @apply text-sm leading-6 text-gray-900 dark:text-gray-100;
  }

  .list-l-description {
    @apply mt-1 text-xs leading-5 text-gray-500 dark:text-gray-200;
  }

  .empty-list {
    @apply flex flex-col items-center justify-center py-12;
  }

  .empty-list .fas{
    @apply mb-2 text-4xl opacity-50;
  }
}
/*
 * 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.
 *


 */

html,
body {
  direction: rtl;
  font-family: "Almarai", sans-serif;
}

body {
  --sb-track-color: #e5e7eb;
  --sb-thumb-color: #f6921e;
  --sb-size: 7px;
  scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
}

@media (prefers-color-scheme: dark) {
  body {
    --sb-track-color: #111827;
  }
}

body::-webkit-scrollbar {
  width: var(--sb-size);
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: var(--sb-size);
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: var(--sb-size);
}
