/**
 * Quick Capture FAB - Floating Action Button
 * Phase 2: Entity Quick-Capture with AI Suggestions
 *
 * Features:
 * - Glasmorphism design with blur effect
 * - Subtle pulsing animation
 * - Smooth hover animations with glow
 * - Modern, futuristic appearance
 * - Always visible (z-index: 9999)
 */

/* ==================== FAB Button - Glasmorphism + Pulse ==================== */

@keyframes fab-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(121, 211, 255, 0.7),
      0 4px 20px rgba(121, 211, 255, 0.4),
      inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(121, 211, 255, 0),
      0 4px 20px rgba(121, 211, 255, 0.4),
      inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
}

@keyframes fab-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(121, 211, 255, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(156, 123, 255, 0.8));
  }
}

/* Subtle radial halo pulse for better visibility */
@keyframes fab-halo {
  0% {
    transform: scale(1);
    opacity: 0.36;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.14;
  }
  100% {
    transform: scale(1);
    opacity: 0.36;
  }
}

.quick-capture-fab {
  position: fixed !important;
  bottom: 40px !important;
  right: 40px !important;
  width: 68px;
  height: 68px;

  /* Porcelain ceramic base: warm-offwhite with subtle cool tint */
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,1) 0%, rgba(250,248,246,1) 30%, rgba(246,244,241,1) 60%),
              linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,243,240,0.98) 100%);
  /* Keep it crisp — no backdrop blur */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  /* Thin porcelain edge - slight cool shadow to imply thickness */
  border: 1px solid rgba(230, 230, 232, 0.9);
  border-radius: 50%;

  /* Centering Icon */
  display: flex !important;
  align-items: center;
  justify-content: center;

  /* Cursor & Z-Index */
  cursor: pointer;
  z-index: 9999 !important;

  /* Ceramic shadow: crisp contact shadow + soft ambient lift */
  box-shadow:
    0 6px 12px rgba(0,0,0,0.36), /* crisper contact/ground shadow */
    0 2px 8px rgba(120,170,255,0.03), /* very subtle ambient tint */
    inset 0 1px 6px rgba(255,255,255,0.32); /* tighter inner highlight */

  /* Smooth Transitions */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Pulsing Animation */
  animation: fab-pulse 3s ease-in-out infinite;

  /* Remove default button styles */
  outline: none;
  user-select: none;

  /* Subtle texture overlay */
  position: relative;
  overflow: hidden;
}

/* Gradient overlay for extra depth */
.quick-capture-fab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Small, bright specular center that mimics a ceramic glaze catch (sharper stops) */
  background: radial-gradient(
    circle at 28% 22%,
    rgba(255,255,255,0.98) 0%,
    rgba(255,255,255,0.85) 4%,
    rgba(255,255,255,0.25) 12%,
    rgba(255,255,255,0.06) 20%,
    transparent 35%
  );
  border-radius: 50%;
  pointer-events: none;
  /* Add a restrained halo pulse so the glaze shimmers without blurring */
  animation: fab-halo 3.2s cubic-bezier(0.3,0.7,0.2,1) infinite;
}

/* Animated shine effect on hover */
.quick-capture-fab::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.75) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.quick-capture-fab i {
  font-size: 26px;
  /* Use the accent color for the icon so it reads crisply against the porcelain base */
  color: var(--acc, #79d3ff);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s ease;
  z-index: 1;
  position: relative;
}

/* Hover State - Enhanced glow and scale */
.quick-capture-fab:hover {
  transform: scale(1.12);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(236, 246, 255, 0.98) 40%,
    rgba(248, 240, 255, 0.98) 100%
  );
  box-shadow:
    0 8px 16px rgba(0,0,0,0.28),
    0 4px 10px rgba(120, 170, 255, 0.04),
    inset 0 0 12px rgba(255, 255, 255, 0.16);
  /* Keep the pulse but tone down the bloom for a crisper hover */
  animation: fab-pulse 2.2s cubic-bezier(0.3,0.7,0.2,1) infinite;
}

/* Shine sweep on hover */
.quick-capture-fab:hover::after {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.quick-capture-fab:hover i {
  transform: rotate(90deg) scale(1.1);
}

/* Active/Click State - Press effect */
.quick-capture-fab:active {
  transform: scale(0.95);
  box-shadow:
    0 0 0 0 rgba(121, 211, 255, 0),
    0 2px 12px rgba(121, 211, 255, 0.5),
    inset 0 0 15px rgba(0, 0, 0, 0.2);
  animation: none;
}

.quick-capture-fab:active i {
  transform: rotate(90deg) scale(0.95);
}

/* Focus state for accessibility */
.quick-capture-fab:focus-visible {
  outline: 3px solid rgba(121, 211, 255, 0.6);
  outline-offset: 4px;
}

/* Tooltip (optional - wird durch title-Attribut angezeigt) */
.quick-capture-fab[title] {
  position: relative;
}


/* ==================== Quick-Add Modal ==================== */

.quick-capture-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Backdrop */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);

  /* Centering */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Z-Index */
  z-index: var(--z-fullscreen);

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-capture-modal.active {
  opacity: 1;
  visibility: visible;
}

.quick-capture-modal-content {
  background: var(--bg-1, #0f1320);
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.18));
  border-radius: var(--radius-lg);

  width: 800px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;

  /* Glass effect matching app theme */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--glass-brd, rgba(255, 255, 255, 0.18)) inset;

  /* Animation */
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-capture-modal.active .quick-capture-modal-content {
  transform: scale(1) translateY(0);
}


/* ==================== Modal Header ==================== */

.quick-capture-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.12));
  background: var(--glass, rgba(255, 255, 255, 0.03));
}

.quick-capture-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--txt, #e8ecf1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-capture-modal-header h3 i {
  color: var(--acc, #79d3ff);
  font-size: 20px;
}

.quick-capture-modal-close {
  background: none;
  border: none;
  color: var(--txt, #e8ecf1);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  opacity: 0.7;
}

.quick-capture-modal-close:hover {
  background: var(--glass, rgba(255, 255, 255, 0.08));
  opacity: 1;
  transform: scale(1.05);
}


/* ==================== Modal Body ==================== */

.quick-capture-modal-body {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  align-items: start;
}

/* Full-width elements */
.quick-capture-modal-body > .quick-capture-form-group:first-child,
.quick-capture-modal-body > .quick-capture-placement-info {
  grid-column: 1 / -1;
}

.quick-capture-form-group {
  margin-bottom: 0;
}

.quick-capture-form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--txt, #e8ecf1);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Name Input + AI Button */
.quick-capture-name-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.quick-capture-name-input-group input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-0, #090b10);
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md);
  color: var(--txt, #e8ecf1);
  font-size: 15px;
  transition: all 0.2s ease;
}

.quick-capture-name-input-group input:focus {
  outline: none;
  border-color: var(--acc, #79d3ff);
  box-shadow: 0 0 0 3px rgba(121, 211, 255, 0.15);
  background: var(--bg-1, #0f1320);
}

.quick-capture-name-input-group input::placeholder {
  color: rgba(232, 236, 241, 0.4);
}

/* Select Dropdown */
.quick-capture-select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-0, #090b10);
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md);
  color: var(--txt, #e8ecf1);
  font-size: 13px;
  font-family: 'Courier New', monospace;
  transition: all 0.2s ease;
  cursor: pointer;
  overflow-y: auto;
  max-height: 150px;
}

.quick-capture-select:focus {
  outline: none;
  border-color: var(--acc, #79d3ff);
  box-shadow: 0 0 0 3px rgba(121, 211, 255, 0.15);
  background: var(--bg-1, #0f1320);
}

.quick-capture-select option {
  background: var(--bg-1, #0f1320);
  color: var(--txt, #e8ecf1);
  padding: 8px 10px;
  font-family: 'Courier New', monospace;
}

.quick-capture-select option:hover {
  background: var(--acc, rgba(121, 211, 255, 0.2));
}

/* Hierarchie-Indentation für Parent-Options */
.quick-capture-select option[data-level="0"] {
  font-weight: 700;
  color: var(--acc, #79d3ff);
}
.quick-capture-select option[data-level="1"] {
  font-weight: 600;
}
.quick-capture-select option[data-level="2"] {
  opacity: 0.9;
}
.quick-capture-select option[data-level="3"] {
  opacity: 0.85;
}
.quick-capture-select option[data-level="4"] {
  opacity: 0.8;
}

/* Parent-Search Input */
.quick-capture-parent-search {
  width: 100%;
  padding: 7px 12px 7px 32px;
  background: var(--bg-0, #090b10);
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md);
  color: var(--txt, #e8ecf1);
  font-size: 12px;
  transition: all 0.2s ease;
  margin-bottom: 6px;
  box-sizing: border-box;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2379d3ff" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 14px;
}

.quick-capture-parent-search:focus {
  outline: none;
  border-color: var(--acc, #79d3ff);
  box-shadow: 0 0 0 3px rgba(121, 211, 255, 0.15);
  background-color: var(--bg-1, #0f1320);
}

.quick-capture-parent-search::placeholder {
  color: rgba(232, 236, 241, 0.4);
}

/* Textarea (UserData) - Spans both columns */
.quick-capture-form-group:has(.quick-capture-textarea) {
  grid-column: 1 / -1;
}

.quick-capture-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-0, #090b10);
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md);
  color: var(--txt, #e8ecf1);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
  box-sizing: border-box;
}

.quick-capture-textarea:focus {
  outline: none;
  border-color: var(--acc, #79d3ff);
  box-shadow: 0 0 0 3px rgba(121, 211, 255, 0.15);
  background: var(--bg-1, #0f1320);
}

.quick-capture-textarea::placeholder {
  color: rgba(232, 236, 241, 0.4);
}

/* ==================== Checkbox Group (System Entity) ==================== */
.quick-capture-checkbox-group {
  grid-column: 1 / -1;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(121, 211, 255, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  margin-top: 4px;
}

.quick-capture-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt, #e8ecf1);
  user-select: none;
}

.quick-capture-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--acc, #79d3ff);
  cursor: pointer;
  flex-shrink: 0;
}

.quick-capture-checkbox-icon {
  font-size: 16px;
}

.quick-capture-checkbox-help {
  margin-top: 8px;
  padding-left: 28px;
}

.quick-capture-checkbox-help small {
  color: rgba(232, 236, 241, 0.5);
  font-size: 12px;
  line-height: 1.4;
}

/* Checked state styling */
.quick-capture-checkbox:checked + .quick-capture-checkbox-icon {
  filter: drop-shadow(0 0 4px rgba(121, 211, 255, 0.6));
}

.quick-capture-checkbox-group:has(.quick-capture-checkbox:checked) {
  border-color: rgba(121, 211, 255, 0.5);
  background: linear-gradient(135deg, rgba(121, 211, 255, 0.1), rgba(139, 92, 246, 0.08));
}

.quick-capture-ai-btn {
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(121, 211, 255, 0.2), rgba(156, 123, 255, 0.2));
  border: 1px solid var(--acc, rgba(121, 211, 255, 0.3));
  border-radius: var(--radius-md);
  color: var(--txt, #e8ecf1);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.quick-capture-ai-btn:hover {
  background: linear-gradient(135deg, rgba(121, 211, 255, 0.3), rgba(156, 123, 255, 0.3));
  border-color: var(--acc, #79d3ff);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(121, 211, 255, 0.3);
}

.quick-capture-ai-btn:active {
  transform: scale(0.95);
}

.quick-capture-ai-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* AI Suggestion Display */
.quick-capture-suggestion {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--glass, rgba(121, 211, 255, 0.08));
  border: 1px solid rgba(121, 211, 255, 0.25);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--txt, #e8ecf1);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
}

.quick-capture-suggestion.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


/* ==================== Sliders ==================== */

.quick-capture-slider-container {
  margin-top: 6px;
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 10px 12px;
}

.quick-capture-slider-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
}

.quick-capture-slider-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--acc, #79d3ff);
  min-width: 45px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.quick-capture-slider {
  width: 100%;
  height: 5px;
  background: transparent;
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
}

/* Custom track styling */
.quick-capture-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--acc, #79d3ff) 0%,
    var(--acc, #79d3ff) var(--slider-progress, 50%),
    var(--bg-0, #090b10) var(--slider-progress, 50%),
    var(--bg-0, #090b10) 100%
  );
  border-radius: 10px;
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.1));
}

.quick-capture-slider::-moz-range-track {
  width: 100%;
  height: 5px;
  background: var(--bg-0, #090b10);
  border-radius: 10px;
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.1));
}

.quick-capture-slider::-moz-range-progress {
  height: 5px;
  background: var(--acc, #79d3ff);
  border-radius: 10px 0 0 10px;
}

/* Thumb styling */
.quick-capture-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--acc, #79d3ff), var(--acc-2, #9c7bff));
  border: 2px solid var(--bg-1, #0f1320);
  border-radius: 50%;
  cursor: grab;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.2s ease;
  margin-top: -8px; /* Center the thumb vertically */
}

.quick-capture-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow:
    0 4px 16px rgba(121, 211, 255, 0.5),
    0 0 20px rgba(121, 211, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.quick-capture-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.quick-capture-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--acc, #79d3ff), var(--acc-2, #9c7bff));
  border: 2px solid var(--bg-1, #0f1320);
  border-radius: 50%;
  cursor: grab;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.2s ease;
}

.quick-capture-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow:
    0 4px 16px rgba(121, 211, 255, 0.5),
    0 0 20px rgba(121, 211, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.quick-capture-slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}


/* ==================== Modal Footer ==================== */

.quick-capture-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.18));
  background: var(--glass, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
}

.quick-capture-btn {
  padding: 10px 24px;
  border: 1px solid var(--glass-brd, rgba(255, 255, 255, 0.18));
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-capture-btn-secondary {
  background: var(--glass, rgba(255, 255, 255, 0.05));
  color: var(--txt, #e8ecf1);
  backdrop-filter: blur(10px);
}

.quick-capture-btn-secondary:hover {
  background: var(--glass, rgba(255, 255, 255, 0.1));
  border-color: var(--acc, #79d3ff);
  color: var(--acc, #79d3ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(121, 211, 255, 0.2);
}

.quick-capture-btn-primary {
  background: linear-gradient(
    135deg,
    rgba(121, 211, 255, 0.3) 0%,
    rgba(156, 123, 255, 0.3) 100%
  );
  border: 1px solid var(--acc, #79d3ff);
  color: var(--txt, #e8ecf1);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 20px rgba(121, 211, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.quick-capture-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 30px rgba(121, 211, 255, 0.4),
    0 6px 20px rgba(121, 211, 255, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.3);
  border-color: var(--acc, #79d3ff);
  background: linear-gradient(
    135deg,
    rgba(121, 211, 255, 0.4) 0%,
    rgba(156, 123, 255, 0.4) 100%
  );
}

.quick-capture-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.quick-capture-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(50%);
}


/* ==================== Placement Info ==================== */

.quick-capture-placement-info {
  margin-top: 0;
  padding: 10px 14px;
  background: linear-gradient(
    135deg,
    rgba(121, 211, 255, 0.08) 0%,
    rgba(156, 123, 255, 0.08) 100%
  );
  border: 1px solid var(--glass-brd, rgba(121, 211, 255, 0.3));
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--txt, #e8ecf1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  grid-column: 1 / -1;
}

.quick-capture-placement-info p {
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}


/* ==================== Loading Spinner ==================== */

.quick-capture-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}


/* ==================== Responsive ==================== */

@media (max-width: 1024px) {
  .quick-capture-modal-content {
    width: 650px;
  }

  .quick-capture-modal-body {
    gap: var(--spacing-md) 20px;
  }
}

@media (max-width: 768px) {
  .quick-capture-fab {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .quick-capture-fab i {
    font-size: 22px;
  }

  .quick-capture-modal-content {
    width: 100%;
    max-width: calc(100vw - 32px);
    margin: 16px;
  }

  .quick-capture-modal-body {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .quick-capture-modal-body > .quick-capture-form-group {
    grid-column: 1;
  }

  .quick-capture-modal-footer {
    flex-direction: column;
  }

  .quick-capture-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==================== Dark Theme Overrides ==================== */

:root[data-theme="dark"] {
  --window-bg: var(--bg-1, #0f1320);
  --input-bg: var(--bg-0, #090b10);
  --border-color: var(--glass-brd, rgba(255, 255, 255, 0.18));
  --text-primary: var(--txt, #e8ecf1);
  --text-secondary: rgba(232, 236, 241, 0.7);
  --accent-color: var(--acc, #79d3ff);
}

:root[data-theme="light"] {
  --window-bg: #ffffff;
  --input-bg: #f5f5f5;
  --border-color: #e0e0e0;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent-color: var(--acc, #79d3ff);
}


