/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Pagy navigation bar styling */
.pagy.nav {
  display: flex;
  justify-content: center;
  margin: 1.5em 0;
  font-family: inherit;
}

.pagy.nav a,
.pagy.nav span {
  display: inline-block;
  padding: 0.4em 0.9em;
  margin: 0 0.15em;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.pagy.nav a:hover:not([aria-disabled="true"]) {
  background: #e0e7ff;
  color: #1e40af;
  border-color: #a5b4fc;
}

.pagy.nav .current,
.pagy.nav a[aria-current="page"] {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
  font-weight: bold;
  cursor: default;
}

.pagy.nav a[aria-disabled="true"] {
  color: #bbb;
  background: #f3f3f3;
  border-color: #eee;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sortable drag-and-drop styles */
.communication-item {
  transition: all 0.2s ease;
}

.communication-item:hover {
  transform: translateY(-1px);
}

.drag-handle {
  cursor: grab;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.sortable-ghost {
  opacity: 0.4;
  background: #f3f4f6 !important;
  border: 2px dashed #d1d5db !important;
}

.sortable-chosen {
  transform: rotate(2deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sortable-drag {
  opacity: 0.8;
  transform: rotate(5deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
