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

/* Sort indicators */
th.sort-asc .text-gray-400::after {
  content: "↑";
  display: inline-block;
  margin-left: 0.5rem;
}

th.sort-desc .text-gray-400::after {
  content: "↓";
  display: inline-block;
  margin-left: 0.5rem;
}

th.sort-asc .text-gray-400,
th.sort-desc .text-gray-400 {
  display: none;
}

/* Add hover effect to sortable headers */
th[data-action] {
  transition: background-color 0.2s;
}

th[data-action]:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dropzone styles */
.dropzone {
  @apply cursor-pointer;
}

.dropzone .dz-preview {
  @apply relative inline-block mb-3 mr-3;
}

.dropzone .dz-preview .dz-progress {
  @apply block h-2 absolute left-0 right-0 bottom-0 bg-gray-200 rounded overflow-hidden z-50;
}

.dropzone .dz-preview .dz-progress .dz-upload {
  @apply block h-full bg-green-500 transition-all duration-300;
}

.dropzone .dz-preview .dz-error-message {
  @apply text-sm text-red-600 mt-2;
}

.dropzone .dz-preview.dz-error .dz-error-message {
  @apply block;
}

.dropzone .dz-preview.dz-error .dz-error-mark {
  @apply block;
}

.dropzone .dz-preview.dz-success .dz-success-mark {
  @apply block;
}

.dropzone .dz-preview .dz-error-mark,
.dropzone .dz-preview .dz-success-mark {
  @apply hidden;
}

.dropzone .dz-message {
  @apply hidden;
}

/*

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

*/
/*
 * 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.
 *


 */
