@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;520;700&display=swap');
[data-cloak] { display: none; }
* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0; padding: 0; padding-top: 68px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); min-height: 100vh; color: #e0e0e0; }
/* Toolbar */
.demo-toolbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; background: #1a1a2e; font-family: 'Work Sans', sans-serif; border-bottom: 1px solid rgba(255,255,255,0.1); }
.demo-toolbar a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #5fa6a6; font-size: 1.25rem; }
.demo-toolbar .logo { height: 40px; }
.demo-toolbar .brand-wf { font-weight: 520; }
.demo-toolbar .brand-js { font-weight: 700; }
.demo-toolbar .demo-info { font-size: 12px; color: rgba(255,255,255,0.7); text-align: right; }
.demo-toolbar .demo-info strong { color: #fff; }
/* Grid layout */
.container { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 20px; max-width: 1600px; margin: 0 auto; padding: 20px; }
@media (max-width: 1200px) { .container { grid-template-columns: 1fr; } }
/* Panels */
.panel { background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.panel.map-panel { grid-row: span 2; }
.panel-header { background: rgba(0,0,0,0.3); padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; }
.panel-header .icon { font-size: 20px; }
.panel-header h2 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.panel-header .badge { margin-left: auto; background: #4ecdc4; color: #1a1a2e; padding: 3px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.panel-body { padding: 0; }
.panel-body.padded { padding: 16px; }
/* Map */
#trip-map { height: 500px; width: 100%; }
/* Leaflet popup theming */
.leaflet-popup-content-wrapper { background: #1a1a2e; border: 1px solid rgba(78, 205, 196, 0.3); border-radius: 8px; }
.leaflet-popup-content { margin: 0; }
.leaflet-popup-tip { background: #1a1a2e; }
.popup-content { padding: 12px; min-width: 180px; }
.popup-content h4 { margin: 0 0 8px; color: #4ecdc4; font-size: 14px; }
.popup-content h4.editable-name { cursor: pointer; transition: opacity 0.2s; }
.popup-content h4.editable-name:hover { opacity: 0.8; }
.popup-content p { margin: 0 0 8px; color: #aaa; font-size: 12px; }
.popup-content p.editable-notes { cursor: pointer; transition: opacity 0.2s; }
.popup-content p.editable-notes:hover { opacity: 0.8; }
.popup-content .date { color: #888; font-size: 11px; }
.popup-actions { display: flex; gap: 8px; margin-top: 10px; }
.popup-actions button { flex: 1; padding: 6px 10px; border: none; border-radius: 4px; font-size: 11px; cursor: pointer; transition: all 0.2s; }
.popup-actions .btn-priority { background: rgba(255,255,255,0.1); color: #fff; }
.popup-actions .btn-remove { background: #ff6b6b; color: #fff; }
/* Priority indicators */
.priority-low { border-left: 3px solid #6bff6b !important; }
.priority-medium { border-left: 3px solid #ffd700 !important; }
.priority-high { border-left: 3px solid #ff6b6b !important; }
/* FullCalendar theming */
#trip-calendar { background: transparent; }
.fc { --fc-border-color: rgba(255,255,255,0.1); --fc-button-bg-color: rgba(255,255,255,0.1); --fc-button-border-color: rgba(255,255,255,0.2); --fc-button-text-color: #fff; --fc-button-hover-bg-color: rgba(78, 205, 196, 0.3); --fc-button-hover-border-color: #4ecdc4; --fc-button-active-bg-color: #4ecdc4; --fc-button-active-border-color: #4ecdc4; --fc-today-bg-color: rgba(78, 205, 196, 0.1); --fc-event-bg-color: #4ecdc4; --fc-event-border-color: #4ecdc4; --fc-page-bg-color: transparent; --fc-neutral-bg-color: rgba(0,0,0,0.2); }
.fc .fc-toolbar-title { color: #fff; font-size: 16px; }
.fc .fc-col-header-cell-cushion { color: #888; }
.fc .fc-daygrid-day-number { color: #aaa; }
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number { color: #4ecdc4; font-weight: bold; }
/* Task list */
#task-list { list-style: none; margin: 0; padding: 0; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.05); cursor: grab; transition: background 0.2s; }
.task-item:hover { background: rgba(78, 205, 196, 0.1); }
.task-item:active { cursor: grabbing; }
.task-item .drag-handle { color: #444; font-size: 14px; }
.task-item .checkbox { width: 18px; height: 18px; border: 2px solid #4ecdc4; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.task-item .checkbox:hover { background: rgba(78, 205, 196, 0.2); }
.task-item.done .checkbox { background: #4ecdc4; }
.task-item.done .checkbox::after { content: '\2713'; color: #1a1a2e; font-size: 12px; font-weight: bold; }
.task-item .text { flex: 1; font-size: 14px; color: #e0e0e0; }
.task-item.done .text { text-decoration: line-through; color: #666; }
.task-item .remove { width: 24px; height: 24px; border: none; background: transparent; color: #666; cursor: pointer; font-size: 16px; border-radius: 4px; transition: all 0.2s; }
.task-item .remove:hover { background: #ff6b6b; color: #fff; }
.sortable-ghost { opacity: 0.4; background: rgba(78, 205, 196, 0.2); }
/* Stats bar */
.stats { display: flex; gap: 12px; padding: 12px 16px; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.05); }
.stat { font-size: 12px; color: #888; }
.stat strong { color: #4ecdc4; margin-left: 4px; }
/* Add button */
.add-btn { width: 100%; padding: 12px; border: 2px dashed rgba(78, 205, 196, 0.3); background: transparent; color: #4ecdc4; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.add-btn:hover { background: rgba(78, 205, 196, 0.1); border-color: #4ecdc4; }
/* Highlight box */
.highlight-box { background: rgba(78, 205, 196, 0.1); border: 1px solid rgba(78, 205, 196, 0.3); border-radius: 8px; padding: 14px 18px; margin: 16px; }
.highlight-box h3 { margin: 0 0 8px; color: #4ecdc4; font-size: 13px; }
.highlight-box p { margin: 0; color: #aaa; font-size: 13px; line-height: 1.5; }
.highlight-box code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 3px; font-size: 12px; }
/* Footer code panel */
.footer-panel { grid-column: span 2; }
@media (max-width: 1200px) { .footer-panel { grid-column: span 1; } }
.code-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px; }
@media (max-width: 900px) { .code-grid { grid-template-columns: 1fr; } }
.code-section h4 { margin: 0 0 10px; color: #4ecdc4; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.code-section pre { margin: 0; background: rgba(0,0,0,0.4); border-radius: 6px; padding: 12px; overflow-x: auto; font-size: 11px; line-height: 1.5; }
.code-section code { font-family: 'SF Mono', 'Fira Code', monospace; color: #e0e0e0; }
.code-comment { color: #6a9955; }
.code-keyword { color: #c586c0; }
.code-string { color: #ce9178; }
