:root {
    --bg-color: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-glow: rgba(88, 166, 255, 0.4);
    --accent-color: #58a6ff;
    --glass-bg: rgba(22, 27, 34, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --danger-color: #f85149;
    --success-color: #2ea043;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Classes */
.glass-header, .glass-panel, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.highlight {
    color: var(--accent-color);
}

.highlight-gradient {
    background: linear-gradient(90deg, #58a6ff, #a371f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.btn-report {
    background-color: var(--accent-color);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.5);
}

.btn-download {
    background-color: var(--success-color);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(46, 160, 67, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 160, 67, 0.5);
}

/* Main Content */
main {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 5rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-card {
    padding: 2rem;
    border-radius: 16px;
    min-width: 250px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Map Section */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.map-container {
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 5rem;
}

#world-map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    background-color: #1a202c; /* Fallback before map loads */
}

/* Form Section */
.report-section {
    display: flex;
    justify-content: center;
}

.report-container {
    display: flex;
    flex-wrap: wrap;
    border-radius: 16px;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

.report-info {
    flex: 1;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
}

.glass-form {
    flex: 1;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #3b82f6;
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.form-message.success { color: var(--success-color); }
.form-message.error { color: var(--danger-color); }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--text-secondary);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .report-container { flex-direction: column; }
    .stats-container { flex-direction: column; }
    .hero-section h1 { font-size: 2.5rem; }
    #world-map { height: 350px; }
}

/* Leaflet Dark Mode Adjustments */
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
