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

/* Trix CSS removed - app uses Lexxy editor instead */

/* Lexxy editor toolbar fixes */
.lexxy-toolbar,
.ProseMirror-menubar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.25rem !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.lexxy-toolbar > *,
.ProseMirror-menubar > * {
  flex-shrink: 0 !important;
}

/* Ensure editor content area has proper min-height */
.ProseMirror {
  min-height: 150px;
}

/* Compact editor for inline note form */
.inline-note-editor .ProseMirror {
  min-height: 80px;
}

.inline-note-editor .lexxy-toolbar,
.inline-note-editor .ProseMirror-menubar {
  padding: 0.25rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Dark mode support for inline editor */
.dark .inline-note-editor .lexxy-toolbar,
.dark .inline-note-editor .ProseMirror-menubar {
  border-bottom-color: #334155;
}

/* Fix turbo-frame inside tables - make it invisible to layout */
table turbo-frame {
  display: contents;
}

/* ============================================
   Valuation Status Dots - Animated indicators
   ============================================ */

/* Base status dot styles */
.status-dot {
  width: 0.625rem; /* 10px / 2.5 = w-2.5 */
  height: 0.625rem;
  border-radius: 9999px;
  display: inline-block;
  flex-shrink: 0;
}

/* Overdue - pulsing red dot */
.status-dot-overdue {
  background-color: #ef4444; /* red-500 */
  animation: pulse-red 1.5s ease-in-out infinite;
}

/* Due Soon/Today - pulsing yellow/amber dot */
.status-dot-due-soon {
  background-color: #f59e0b; /* amber-500 */
  animation: pulse-amber 2s ease-in-out infinite;
}

/* On Track - solid green dot (no animation) */
.status-dot-on-track {
  background-color: #22c55e; /* green-500 */
}

/* No valuations yet - hollow gray dot */
.status-dot-none {
  background-color: transparent;
  border: 2px solid #cbd5e1; /* slate-300 */
}

/* Pulse animations */
@keyframes pulse-red {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}

@keyframes pulse-amber {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0);
  }
}
