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

/* Trello-like Board Styles */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-container {
  height: calc(100vh - 200px);
  min-height: 500px;
}

.list-column {
  height: fit-content;
  max-height: calc(100vh - 250px);
}

.cards-container {
  overflow-y: auto;
  max-height: calc(100vh - 350px);
}

/* Drag and drop styles */
.card.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
  z-index: 1000;
}

.list-column.drag-over {
  background-color: #e5e7eb;
  border: 2px dashed #9ca3af;
}

/* Smooth transitions */
.card {
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for cards container */
.cards-container::-webkit-scrollbar {
  width: 6px;
}

.cards-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.cards-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.cards-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

[x-cloak] { display: none !important; }

html.capacitor-app,
html.capacitor-app body {
  min-height: 100%;
  background: #1c2434;
}

html.capacitor-app body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

html.capacitor-app .h-screen {
  height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

.mobile-pull-refresh-indicator {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9999px;
  color: #f8fafc;
  background: rgba(28, 36, 52, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, env(safe-area-inset-top));
  transition: opacity 160ms ease, transform 160ms ease;
}

.mobile-pull-refresh-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(248, 250, 252, 0.32);
  border-top-color: #f8fafc;
  border-radius: 9999px;
}

.mobile-pull-refresh-indicator.is-refreshing .mobile-pull-refresh-spinner {
  animation: mobile-pull-refresh-spin 700ms linear infinite;
}

.flex.h-screen > .relative.flex.flex-1.flex-col {
  transition: transform 160ms ease;
  will-change: transform;
}

@keyframes mobile-pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile homeowner navigation: keep drawer targets easy to tap. */
#tailadmin-sidebar a,
#tailadmin-sidebar button,
#kt_aside_mobile_toggle,
#kt_activities_toggle {
  min-height: 44px;
}

#tailadmin-sidebar a,
#tailadmin-sidebar button {
  align-items: center;
}
