/* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; } .container { max-width: 1400px; margin: 0 auto; } /* Header */ .header { background: white; padding: 30px; border-radius: 15px; text-align: center; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); } .header h1 { color: #1e293b; font-size: 2.5em; margin-bottom: 10px; } .header p { color: #64748b; font-size: 1.1em; } /* Main Content */ .main-content { display: grid; grid-template-columns: 450px 1fr; gap: 30px; margin-bottom: 30px; } @media (max-width: 1024px) { .main-content { grid-template-columns: 1fr; } } /* Card Styles */ .card { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); margin-bottom: 20px; } .card h2 { color: #1e293b; margin-bottom: 20px; font-size: 1.5em; } /* Input Section */ .input-group { margin-bottom: 15px; } .input-group label { display: block; margin-bottom: 5px; color: #475569; font-weight: 600; } .input-group input { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 16px; transition: border-color 0.3s; } .input-group input:focus { outline: none; border-color: #667eea; } /* Buttons */ .btn-primary { width: 100%; padding: 15px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; font-size: 18px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; margin-top: 10px; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); } .btn-primary:active { transform: translateY(0); } .quick-locations { margin-top: 20px; padding-top: 20px; border-top: 2px solid #e2e8f0; } .quick-locations p { margin-bottom: 10px; color: #475569; } .btn-secondary { padding: 8px 15px; margin: 5px; background: #f1f5f9; border: 2px solid #e2e8f0; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.2s; } .btn-secondary:hover { background: #667eea; color: white; border-color: #667eea; } /* Risk Indicator */ .risk-indicator { text-align: center; margin-bottom: 20px; } .risk-gauge { width: 100%; height: 40px; background: #e2e8f0; border-radius: 20px; overflow: hidden; margin-bottom: 15px; position: relative; } .gauge-fill { height: 100%; background: linear-gradient(90deg, #4ade80 0%, #fbbf24 50%, #ef4444 100%); width: 0%; transition: width 1s ease-out; border-radius: 20px; } .risk-percentage { font-size: 3em; font-weight: bold; color: #1e293b; } /* Risk Badge */ .risk-badge { text-align: center; margin: 20px 0; } .risk-badge span { display: inline-block; padding: 10px 30px; border-radius: 25px; font-size: 1.2em; font-weight: bold; text-transform: uppercase; } .risk-low { background: #d1fae5; color: #065f46; } .risk-medium { background: #fef3c7; color: #92400e; } .risk-high { background: #fee2e2; color: #991b1b; } /* Features Grid */ .features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; } .feature-item { background: #f8fafc; padding: 15px; border-radius: 10px; text-align: center; } .feature-icon { font-size: 2em; margin-bottom: 5px; } .feature-label { color: #64748b; font-size: 0.9em; margin-bottom: 5px; } .feature-value { color: #1e293b; font-size: 1.2em; font-weight: bold; } /* Date Range */ .date-range { margin-top: 15px; padding: 10px; background: #f1f5f9; border-radius: 8px; text-align: center; color: #475569; font-size: 0.9em; } /* Loading Card */ .loading-card { text-align: center; } .loading-spinner { width: 50px; height: 50px; border: 5px solid #e2e8f0; border-top: 5px solid #667eea; border-radius: 50%; margin: 20px auto; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Map */ .map-card { height: calc(100vh - 200px); display: flex; flex-direction: column; } #map { flex: 1; border-radius: 10px; margin-top: 10px; } .map-legend { display: flex; justify-content: center; gap: 20px; margin-top: 15px; padding-top: 15px; border-top: 2px solid #e2e8f0; } .legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9em; color: #475569; } .legend-color { width: 20px; height: 20px; border-radius: 4px; } /* Footer */ .footer { background: white; padding: 20px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); } .footer p { color: #64748b; } /* Leaflet Popup Custom */ .leaflet-popup-content-wrapper { border-radius: 10px; } .popup-content { text-align: center; padding: 10px; } .popup-content h3 { margin-bottom: 10px; color: #1e293b; } .popup-risk { display: inline-block; padding: 5px 15px; border-radius: 15px; font-weight: bold; font-size: 0.9em; }