* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary: #6366f1; --primary-dark: #4f46e5; --secondary: #8b5cf6; --success: #10b981; --bg-dark: #0f172a; --bg-card: #1e293b; --text-primary: #f1f5f9; --text-secondary: #cbd5e1; --border: #334155; --shadow: rgba(0, 0, 0, 0.3); } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%); color: var(--text-primary); overflow: hidden; height: 100vh; } #app { display: flex; flex-direction: column; height: 100vh; } /* Header Styles */ #header { background: var(--bg-card); padding: 0.5rem 1.5rem; border-bottom: 2px solid var(--border); box-shadow: 0 4px 6px var(--shadow); display: flex; justify-content: space-between; align-items: center; gap: 2rem; height: 70px; } .logo-section h1 { font-size: 1.25rem; font-weight: 700; white-space: nowrap; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0; } #app-footer { position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: var(--text-secondary); opacity: 0.6; z-index: 10; } #app-footer a { color: var(--text-secondary); text-decoration: none; } #app-footer a:hover { color: var(--primary); text-decoration: underline; } /* User Menu */ .user-menu { display: flex; align-items: center; gap: 0.75rem; background: rgba(15, 23, 42, 0.4); padding: 0.5rem 1rem; border-radius: 12px; border: 1px solid var(--border); } .user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--primary); } .user-name { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); } #stats-bar { display: flex; align-items: center; background: rgba(15, 23, 42, 0.4); border-radius: 12px; padding: 0.25rem 0.5rem; border: 1px solid var(--border); flex: 1; justify-content: flex-end; } .stat-group { display: flex; flex-direction: column; padding: 0.25rem 1rem; position: relative; min-width: 100px; } .stat-group.clickable { cursor: pointer; background: rgba(99, 102, 241, 0.1); border-radius: 8px; transition: all 0.2s ease; padding-right: 2rem; flex: 1; min-width: 200px; } .stat-group.clickable:hover { background: rgba(99, 102, 241, 0.2); box-shadow: 0 0 10px rgba(99, 102, 241, 0.1); } .stat-group.clickable:hover .edit-icon { opacity: 1; transform: translateY(-50%) scale(1.1); } .stat-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-secondary); letter-spacing: 0.05em; margin-bottom: 0.1rem; } .stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; } .divider { width: 1px; height: 30px; background: var(--border); margin: 0 0.5rem; } .edit-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--primary); opacity: 0.5; transition: all 0.2s ease; } .route-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; color: var(--primary); } /* Street View Container */ #streetview-container { flex: 1; position: relative; overflow: hidden; } #panorama { width: 100%; height: 100%; } #main-map { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 5; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: bottom right; } .hidden-mode { display: none !important; } /* Minimap */ #minimap-container { position: absolute; bottom: 20px; right: 20px; width: 250px; height: 200px; z-index: 10; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); border: 3px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; } #minimap-container:hover { transform: scale(1.05); border-color: var(--primary); } #minimap { width: 100%; height: 100%; background: var(--bg-card); } /* Overlay Styles */ .overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 1000; } .overlay.active { display: flex; } .setup-card { background: var(--bg-card); padding: 3rem; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); max-width: 500px; width: 90%; border: 1px solid var(--border); } .setup-card h2 { font-size: 1.75rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .setup-card p { color: var(--text-secondary); margin-bottom: 1.5rem; } .setup-card input[type="text"] { width: 100%; padding: 1rem; background: var(--bg-dark); border: 2px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 1rem; margin-bottom: 1.5rem; transition: all 0.3s ease; } .setup-card input[type="text"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .input-group { margin-bottom: 1.5rem; } .input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-weight: 500; } .input-group input { width: 100%; padding: 1rem; background: var(--bg-dark); border: 2px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 1rem; transition: all 0.3s ease; } .input-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .primary-btn { width: 100%; padding: 1rem 2rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.05em; } .primary-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); } .primary-btn:active { transform: translateY(0); } .api-note, .help-text { font-size: 0.875rem; color: var(--text-secondary); margin-top: 1rem; text-align: center; } .help-text a { color: var(--primary); text-decoration: none; } .help-text a:hover { text-decoration: underline; } .route-text { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; } .route-text:hover { color: var(--secondary); } .control-btn { padding: 0.75rem 1.5rem; background: var(--bg-dark); border: 2px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 1rem; cursor: pointer; transition: all 0.3s ease; font-weight: 500; } .control-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); } /* Responsive Design */ @media (max-width: 768px) { #header { flex-direction: column; height: auto; padding: 0.5rem; gap: 0.5rem; } .logo-section h1 { font-size: 1rem; } #stats-bar { width: 100%; overflow-x: auto; justify-content: flex-start; } .stat-group { min-width: 80px; padding: 0.25rem 0.5rem; } .stat-group.clickable { min-width: 150px; } .setup-card { padding: 2rem 1.5rem; } } /* Loading animation */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .loading { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } /* Refresh Button Styles */ .stat-row { display: flex; align-items: center; gap: 8px; } .icon-button { background: none; border: none; color: rgba(255, 255, 255, 0.7); font-size: 1.2rem; cursor: pointer; padding: 0; transition: all 0.2s ease; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .icon-button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); transform: rotate(30deg); } .icon-button:active { transform: scale(0.9); } .icon-button.spinning { animation: spin 1s linear infinite; pointer-events: none; opacity: 0.5; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* Custom Route UI */ .separator { display: flex; align-items: center; text-align: center; margin: 1.5rem 0; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; } .separator::before, .separator::after { content: ''; flex: 1; border-bottom: 2px solid var(--border); } .separator span { padding: 0 10px; background: var(--bg-card); } .custom-route-section { background: rgba(15, 23, 42, 0.4); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; text-align: center; } .custom-route-section h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 0.25rem; } .subtext { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; } .secondary-btn { width: 100%; padding: 0.75rem 1.5rem; background: transparent; border: 2px solid var(--primary); color: var(--primary); border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; } .secondary-btn:hover:not(:disabled) { background: var(--primary); color: white; } .secondary-btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: var(--border); color: var(--text-secondary); } /* KML Browser Styles */ .kml-browser-card { background: var(--bg-card); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); max-width: 700px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; border: 1px solid var(--border); } .kml-browser-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 2px solid var(--border); } .kml-browser-header h2 { font-size: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0; } .close-btn { background: none; border: none; color: var(--text-secondary); font-size: 2rem; cursor: pointer; transition: all 0.2s ease; line-height: 1; } .close-btn:hover { color: var(--text-primary); transform: rotate(90deg); } .kml-tabs { display: flex; border-bottom: 2px solid var(--border); padding: 0 2rem; } .kml-tab { padding: 1rem 2rem; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1rem; font-weight: 500; transition: all 0.2s ease; border-bottom: 3px solid transparent; margin-bottom: -2px; } .kml-tab.active { color: var(--primary); border-bottom-color: var(--primary); } .kml-tab:hover { color: var(--text-primary); } .kml-tab-content { flex: 1; overflow-y: auto; padding: 2rem; } .tab-pane { display: none; } .tab-pane.active { display: block; } .upload-section { margin-bottom: 1.5rem; } .sort-controls { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; background: rgba(15, 23, 42, 0.4); border-radius: 8px; } .sort-controls label { font-weight: 500; color: var(--text-secondary); } .sort-controls select { padding: 0.5rem 1rem; background: var(--bg-dark); border: 2px solid var(--border); border-radius: 6px; color: var(--text-primary); font-size: 0.9rem; cursor: pointer; } .sort-controls select:focus { outline: none; border-color: var(--primary); } .kml-file-list { display: flex; flex-direction: column; gap: 1rem; } .empty-message { text-align: center; color: var(--text-secondary); padding: 3rem 1rem; font-style: italic; } .kml-file-item { background: rgba(15, 23, 42, 0.4); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s ease; } .kml-file-item:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1); } .kml-file-info { flex: 1; } .kml-file-name { font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; } .kml-file-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-secondary); } .kml-file-actions { display: flex; gap: 0.5rem; align-items: center; } .vote-btn { background: none; border: 1px solid var(--border); color: var(--text-secondary); padding: 0.5rem; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; font-size: 1.2rem; display: flex; align-items: center; gap: 0.25rem; } .vote-btn:hover { border-color: var(--primary); color: var(--text-primary); } .vote-btn.active-upvote { border-color: var(--success); color: var(--success); background: rgba(16, 185, 129, 0.1); } .vote-btn.active-downvote { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.1); } .vote-count { font-size: 0.9rem; font-weight: 600; min-width: 2rem; text-align: center; } .action-btn { background: none; border: 1px solid var(--border); color: var(--text-secondary); padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; font-size: 0.9rem; } .action-btn:hover { border-color: var(--primary); color: var(--text-primary); } .action-btn.danger:hover { border-color: #ef4444; color: #ef4444; } /* Secondary Links (Privacy, etc) */ .privacy-link-container { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); width: 100%; } .secondary-link { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; } .secondary-link:hover { color: var(--primary); } /* KML Details Overlay Styles */ .kml-details-card { background: var(--bg-card); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); max-width: 900px; width: 95%; max-height: 90vh; display: flex; flex-direction: column; border: 1px solid var(--border); } .kml-details-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 2px solid var(--border); } .kml-details-header h2 { font-size: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0; } .kml-details-content { flex: 1; overflow-y: auto; display: flex; flex-direction: row; /* Side by side on desktop */ } .kml-preview-map { flex: 1; min-height: 400px; background: #000; border-right: 2px solid var(--border); } .kml-metadata-section { flex: 1; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto; min-width: 300px; } .metadata-row { display: flex; flex-wrap: wrap; gap: 1rem; } .meta-tag { background: rgba(15, 23, 42, 0.6); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; border: 1px solid var(--border); color: var(--text-primary); } .description-container { flex: 1; display: flex; flex-direction: column; background: rgba(15, 23, 42, 0.4); border-radius: 12px; border: 1px solid var(--border); padding: 1rem; } .description-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; } .description-header h3 { font-size: 1.1rem; margin: 0; } .description-text { flex: 1; white-space: pre-wrap; line-height: 1.6; color: var(--text-secondary); font-size: 0.95rem; overflow-y: auto; max-height: 300px; } .description-editor { flex: 1; display: flex; flex-direction: column; gap: 1rem; } .description-editor textarea { width: 100%; height: 200px; background: var(--bg-dark); border: 1px solid var(--border); padding: 1rem; color: var(--text-primary); border-radius: 8px; resize: vertical; font-family: inherit; } .editor-actions { display: flex; gap: 1rem; justify-content: flex-end; } .kml-details-footer { padding: 1.5rem 2rem; border-top: 2px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); } .primary-btn.small { padding: 0.5rem 1rem; font-size: 0.9rem; } .primary-btn.large { font-size: 1.2rem; padding: 1rem 3rem; width: auto; } .hidden { display: none !important; } @media (max-width: 900px) { .kml-details-content { flex-direction: column; } .kml-preview-map { min-height: 300px; border-right: none; border-bottom: 2px solid var(--border); } }