* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; background-color: #f0f2f5; color: #333; } html, body, .app-container { height: 100%; width: 100%; } .app-container { display: flex; overflow: hidden; } /* ============ SIDEBAR ============ */ .sidebar { width: 320px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; overflow-y: auto; display: flex; flex-direction: column; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); z-index: 100; } .sidebar-header { padding: 30px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); text-align: center; } .sidebar-header h1 { font-size: 28px; margin-bottom: 5px; font-weight: 700; letter-spacing: -0.5px; } .subtitle { font-size: 13px; opacity: 0.9; font-weight: 400; } .sidebar-content { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; } .stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .stats-card { background: rgba(255, 255, 255, 0.15); padding: 20px; border-radius: 12px; text-align: center; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .stat-number { font-size: 36px; font-weight: 700; margin-bottom: 8px; } .stat-label { font-size: 13px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; } /* ============ BUTTONS ============ */ .sidebar-actions, .draw-actions { display: grid; gap: 10px; } .hidden { display: none !important; } .btn-primary, .btn-secondary { border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; padding: 12px 20px; display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; } .btn-primary { background-color: #4CAF50; color: white; } .btn-primary:hover { background-color: #45a049; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3); } .btn-primary.btn-lg { padding: 16px 24px; font-size: 15px; } .btn-icon { font-size: 18px; font-weight: bold; } .btn-secondary { background-color: rgba(255, 255, 255, 0.2); color: white; } .btn-secondary:hover { background-color: rgba(255, 255, 255, 0.3); } /* ============ INSTRUCTION BOX ============ */ .instructions-box, .info-box { background: rgba(255, 255, 255, 0.1); padding: 15px; border-radius: 8px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); } .instructions-box h3, .info-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; opacity: 0.95; } .instructions-list { display: flex; flex-direction: column; gap: 10px; } .instruction-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; } .instruction-num { background: #4CAF50; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; } .info-box p { font-size: 12px; line-height: 1.5; opacity: 0.9; } /* ============ MAIN CONTENT ============ */ .main-content { flex: 1; position: relative; overflow: hidden; } #map { width: 100%; height: 100%; display: block; } /* ============ MODAL ============ */ .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); animation: fadeIn 0.3s ease-in-out; align-items: center; justify-content: center; } .modal.show { display: flex; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-content { background-color: white; padding: 30px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; animation: slideUp 0.3s ease-in-out; } @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f0f2f5; } .modal-header h2 { color: #333; font-size: 20px; margin: 0; } .close { color: #999; font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.2s; line-height: 1; background: none; border: none; padding: 0; } .close:hover { color: #333; } /* ============ FORM ============ */ #point-form { display: flex; flex-direction: column; gap: 18px; } .form-group { display: flex; flex-direction: column; } .form-group label { font-weight: 600; margin-bottom: 8px; color: #333; font-size: 14px; } .form-group input[type="text"], .form-group input[type="number"] { padding: 12px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 14px; font-family: inherit; transition: all 0.2s; } .form-group input[type="text"]:focus, .form-group input[type="number"]:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group input[type="text"][readonly-display], .form-group input[type="number"][readonly-display] { background-color: #f9f9f9; cursor: default; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .checkbox-group { flex-direction: row; } .checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; font-size: 14px; } .checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #667eea; } .form-info { padding: 10px 12px; background-color: #e8f4f8; border-left: 4px solid #667eea; border-radius: 4px; font-size: 12px; color: #555; display: none; } .form-info.show { display: block; } .form-actions { display: flex; gap: 10px; margin-top: 15px; justify-content: flex-end; } .form-actions .btn-primary, .form-actions .btn-secondary { width: auto; flex: 1; } /* ============ NOTIFICATIONS ============ */ .notification { position: fixed; top: 20px; right: 20px; padding: 14px 20px; border-radius: 8px; background-color: #4CAF50; color: white; z-index: 3000; animation: slideInRight 0.3s ease-in-out; max-width: 350px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); font-size: 14px; font-weight: 500; } .notification.error { background-color: #f44336; } @keyframes slideInRight { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* ============ LEAFLET MARKER POPUPS ============ */ .leaflet-popup-content { margin: 0; padding: 0; } .marker-popup { padding: 12px; text-align: center; } .marker-popup-name { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: #333; } .marker-popup-hours { font-size: 13px; margin: 8px 0; color: #4CAF50; font-weight: 600; } .marker-popup-info { font-size: 12px; color: #666; margin: 10px 0; line-height: 1.6; } .marker-popup button { background-color: #f44336; color: white; border: none; padding: 10px 14px; border-radius: 6px; cursor: pointer; width: 100%; margin-top: 10px; font-size: 13px; font-weight: 600; transition: background-color 0.2s; } .marker-popup button:hover { background-color: #da190b; } /* ============ SCROLLBAR ============ */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); } /* ============ RESPONSIVE ============ */ @media (max-width: 768px) { .app-container { flex-direction: column; } .sidebar { width: 100%; max-height: 40vh; border-bottom: 1px solid rgba(255, 255, 255, 0.2); border-right: none; } .sidebar-header { padding: 20px 15px; } .sidebar-header h1 { font-size: 24px; } .sidebar-content { flex-direction: row; gap: 15px; overflow-x: auto; padding: 15px; } .stats-card { min-width: 150px; } .instructions-box, .info-box { display: none; } .modal-content { width: calc(100% - 20px); max-height: 80vh; } .form-row { grid-template-columns: 1fr; } .notification { left: 10px; right: 10px; max-width: none; } } @media (max-width: 480px) { .sidebar { max-height: 35vh; } .sidebar-header { padding: 15px 10px; } .sidebar-header h1 { font-size: 20px; } .modal-content { padding: 20px; } .form-actions { flex-direction: column; } .form-actions .btn-primary, .form-actions .btn-secondary { width: 100%; } }