/* Reagent — custom styles beyond Tailwind CDN */

/* Status badge colours */
.badge-not_started { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.badge-draft { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-generating { background: #eff6ff; color: #007FFF; border: 1px solid #bfdbfe; }
.badge-failed { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-ready { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-published { background: rgba(0,127,255,0.1); color: #007FFF; border: 1px solid rgba(0,127,255,0.2); }

/* Sales status badges */
.badge-available { background: #ecfdf5; color: #047857; border: 1px solid #86efac; }
.badge-under_offer { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.badge-sold { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Split pane layout */
.split-pane { display: flex; height: 100%; overflow: hidden; }
.split-pane-left { width: 288px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid #e5e7eb; }
.split-pane-right { flex: 1; overflow-y: auto; }

/* Zone list item */
.zone-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px; cursor: pointer; transition: background-color 0.15s; }
.zone-item:hover { background: #f9fafb; }
.zone-item.active { background: #f3f4f6; }
.zone-item.hidden-zone { opacity: 0.5; }

/* Dirty field indicator */
.field-dirty .field-actions { display: flex; }
.field-actions { display: none; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* Progress bar */
.progress-bar { height: 6px; border-radius: 3px; background: #f3f4f6; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 3px; background: #007FFF; transition: width 0.3s ease; }

/* Batch action bar */
.batch-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }

/* Toast animations */
.toast-enter { animation: slideIn 0.2s ease-out; }
.toast-exit { animation: slideOut 0.2s ease-in forwards; }
@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; } }

/* Generating pulse */
.pulse-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.5s infinite; margin-right: 6px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Lightbox overlay */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; padding: 16px; }

/* Sidebar transitions */
#app-sidebar { transition: width 0.2s ease; }
#app-sidebar.w-16 .sidebar-nav-btn { justify-content: center; padding-left: 0; padding-right: 0; }

/* Mobile bottom nav */
.mobile-nav-btn { color: #6b7280; transition: color 0.15s; }
.mobile-nav-btn.active { color: #007FFF; }

/* User status badges */
.badge-user-active { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-user-invited { background: #eff6ff; color: #007FFF; border: 1px solid #bfdbfe; }
.badge-user-deactivated { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }

/* Presenter overlay (published tour) */
.presenter-overlay { position: fixed; z-index: 50; border-radius: 12px; overflow: hidden; user-select: none; box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2); }
.presenter-overlay .controls { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); opacity: 0; transition: opacity 0.2s; }
.presenter-overlay:hover .controls { opacity: 1; }
.presenter-overlay .controls button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; backdrop-filter: blur(4px); border: none; cursor: pointer; transition: background 0.15s; }
.presenter-overlay .controls button:hover { background: rgba(255,255,255,0.3); }
.presenter-overlay .controls .play-pause { width: 40px; height: 40px; }
