/* ======================= General Setup & Variables ======================= */
:root {
    --primary-color: #005A9C; /* Deep Blue */
    --secondary-color: #FFFFFF; /* White */
    --accent-color: #FFC107; /* Warning Yellow/Gold */
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --section-bg: #f8f9fa;
    --font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 80px; /* Account for fixed header height */
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* ======================= Header & Navigation ======================= */
.main-header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    min-height: 60px; /* Ensures consistent header height */
    max-width: 100%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-shrink: 0; /* Prevents menu from shrinking too much */
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap; /* Prevents text from wrapping */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0; /* Prevents the buttons from shrinking */
}

/* ======================= Buttons & Links ======================= */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn--primary:hover {
    background-color: #e0a800;
}

.btn--secondary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn--secondary:hover {
    background-color: #004a80;
}

.btn--large {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.link-cta {
    color: var(--secondary-color);
    text-decoration: underline;
    margin-left: 1rem;
}

/* ======================= Hero Section with Live Map ======================= */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://source.unsplash.com/1600x900/?indian-coastline,ocean-waves');
    background-size: cover;
    background-position: center;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    padding: 2rem 3%;
    position: relative;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 550px;
    z-index: 2;
    padding-right: 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ======================= Live Map Section ======================= */
.live-map-section {
    flex: 1;
    max-width: 500px;
    height: 400px;
    position: relative;
    z-index: 2;
    margin-left: 12rem;
    margin-right: 5rem;
}

.map-header {
    position: absolute;
    top: -20px;
    left: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-header h3 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.large-map-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    position: relative;
    background: white;
}

.live-map {
    width: 100%;
    height: 100%;
    border-radius: 17px;
}

.map-label {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-label span {
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mapbox Controls Styling */
.mapboxgl-ctrl-geolocate {
    background-color: #005A9C !important;
}

.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 3%;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .live-map-section {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .live-map-section {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .map-header h3 {
        font-size: 0.9rem;
    }
}

/* ======================= Stats Bar Section ======================= */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 3rem 5%;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1.1rem;
}

/* ======================= How It Works & Portals Sections ======================= */
.how-it-works, .user-portals {
    padding: 4rem 5%;
}
.user-portals{
    background-color: var(--section-bg);
}

.steps-container, .portals-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 2rem;
}

.step, .portal-card {
    flex-basis: 30%;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
}
.portal-card{
     background-color: #fff;
     box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ======================= Report Hazard Section ======================= */
.report-section {
    padding: 4rem 5%;
    background-color: #fff;
}

.report-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

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

.hazard-form input,
.hazard-form select,
.hazard-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 1ms ease;
}

.hazard-form input:focus,
.hazard-form select:focus,
.hazard-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.hazard-form textarea {
    resize: vertical;
    min-height: 100px;
}

.hazard-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* ======================= Active Navigation States ======================= */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ======================= Footer ======================= */
.main-footer {
    background: linear-gradient(135deg, #212529, #343a40);
    color: var(--text-light);
    padding: 3rem 5% 1rem 5%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #e0a800;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #adb5bd;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e0a800;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: #adb5bd;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #e0a800;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #adb5bd;
}

.contact-info i {
    color: #e0a800;
    width: 20px;
}

.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #495057;
    border-bottom: 1px solid #495057;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.govt-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #e0a800;
}

.govt-logos img {
    width: 40px;
    height: 40px;
}

.footer-certifications {
    font-size: 0.9rem;
    color: #adb5bd;
}

.footer-bottom {
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e0a800;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: #adb5bd;
}

.footer-update {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-logos {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* ======================= LATEST ALERTS MARQUEE ======================= */
.latest-alerts {
    background-color: var(--accent-color); /* Using the warning yellow color */
    color: var(--text-dark);
    display: flex;
    align-items: center;
    padding: 0.5rem 0; /* Reduced padding for a thinner bar */
    overflow: hidden; /* This is crucial for the marquee effect */
    border-bottom: 1px solid #e0a800;
}

.alert-label {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    white-space: nowrap; /* Prevents the label text from wrapping */
}

.marquee-container {
    flex-grow: 1; /* Allows the container to fill the remaining space */
    overflow: hidden; /* Hides the content that is outside the container */
}

.marquee-content {
    display: inline-block; /* Allows the content to be a single long line */
    white-space: nowrap; /* Prevents the alerts from wrapping to the next line */
    /* Animation properties */
    animation: scroll-left 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused; /* Pauses the scroll on hover so users can read/click */
}

.marquee-content span {
    display: inline-block;
}

.marquee-content a {
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 1.5rem; /* Space between each alert item */
    padding: 0.5rem 0;
    display: inline-block;
}

.marquee-content a:hover {
    text-decoration: underline;
}

/* The Keyframes Animation for Scrolling */
@keyframes scroll-left {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%); /* Moves the content left by half its width (for the duplicated list) */
    }
}

/* ======================= Responsive Design ======================= */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: nowrap;
        padding: 0.5rem 3%;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ======================= Reports Page Styles ======================= */

/* Add some padding to the top to account for the fixed header */
.page-container {
    padding-top: 80px; 
}

.page-header {
    background-color: var(--section-bg);
    padding: 2rem 5%;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.filter-controls {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-controls input,
.filter-controls select {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
}

.report-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.report-card--low {
    border-left: 4px solid #ffc107; /* Yellow */
}

.report-card--medium {
    border-left: 4px solid #fd7e14; /* Orange */
}

.report-card--high {
    border-left: 4px solid rgba(220, 53, 69, 0.7); /* Red with reduced opacity */
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-body p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-body p i {
    color: var(--primary-color);
}

.card-actions {
    background-color: var(--section-bg);
    padding: 1rem 1.5rem;
    text-align: right;
}

/* Status Badge Styles */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}

.status-badge--pending {
    background-color: rgba(220, 53, 69, 0.7); /* Red with reduced opacity */
}

.status-badge--active {
    background-color: var(--accent-color); /* Yellow from your theme */
    color: var(--text-dark);
}

.status-badge--resolved {
    background-color: #28a745; /* Green */
}
/* ======================= My Reports Page (Public User) ======================= */

/* Style for the welcome message in the header */
.welcome-user {
    font-weight: 500;
    margin-right: 1.5rem;
}

/* Container for the user's personal stats on the dashboard */
.user-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block; /* Makes the background only as wide as the content */
}

/* Re-using stat-item styles from the homepage, but with a darker text color */
.user-stats .stat-item {
    text-align: center;
    color: var(--text-dark);
    display: inline-block;
    padding: 0 2rem;
}
.user-stats .stat-item:first-child {
    border-right: 1px solid #ddd;
}

/* Styles for the 'empty state' message when a user has no reports */
.empty-state {
    grid-column: 1 / -1; /* Makes this element span the full grid width */
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--section-bg);
    border-radius: 10px;
}
.empty-icon {
    font-size: 5rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}
.empty-state h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.empty-state p {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
/* ======================= Enhanced Modal Styles ======================= */

/* Base Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Removed backdrop-filter entirely for instant modal opening */
}

.modal.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 650px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    /* Simplify shadow and shorten animation for snappier opening */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    animation: modalSlideIn 0.12s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover,
.close-button:focus {
    color: #e0a800;
}

/* ======================= Authentication Modal Styles ======================= */

.auth-modal-content {
    max-width: 550px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #e0a800, #FF8533);
    color: white;
    padding: 1.2rem;
    text-align: center;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.3rem;
}

.auth-logo i {
    font-size: 1.8rem;
}

.auth-logo h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.85rem;
}

.auth-tabs {
    display: flex;
    background-color: #f8f9fa;
    flex-shrink: 0;
    border-bottom: 1px solid #dee2e6;
}

.auth-tab {
    flex: 1;
    padding: 0.7rem 1.5rem;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.auth-tab.active {
    background: white;
    color: #e0a800;
    border-bottom: 3px solid#e0a800;
}

.auth-section {
    display: none;
    padding: 1.3rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.auth-section.active {
    display: block;
}

.auth-section h3 {
    text-align: center;
    color: #212529;
    margin-bottom: 1.3rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
}

.form-group label i {
    color: #e0a800;
    width: 18px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e0a800;
    box-shadow: 0 0 0 3px rgba(224, 168, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 35px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #e0a800;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #e0a800;
    border-color: #e0a800;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.forgot-password {
    color: #e0a800;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    margin-top: 0.8rem;
}

.demo-credentials {
    margin-top: 1.2rem;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.demo-credentials p {
    margin: 0.4rem 0;
    font-size: 0.8rem;
    color: #495057;
}

.demo-credentials code {
    background: #e9ecef;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    color: #e0a800;
    font-size: 0.75rem;
}

/* ======================= Registration Type Cards ======================= */

.registration-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}

.reg-type-card {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.reg-type-card.active {
    border-color: #e0a800;
    background-color: rgba(224, 168, 0, 0.05);
}

.reg-type-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reg-type-icon {
    font-size: 1.5rem;
    color: #e0a800;
    margin-bottom: 0.6rem;
}

.reg-type-card h4 {
    margin: 0 0 0.3rem 0;
    color: #212529;
    font-size: 0.95rem;
}

.reg-type-card p {
    margin: 0;
    font-size: 0.75rem;
    color: #6c757d;
}

.disabled-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #dc3545;
    font-weight: 600;
    font-size: 0.8rem;
}

.disabled-overlay i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ======================= Report Modal Styles ======================= */

.report-modal-content {
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.report-header {
    background: linear-gradient(135deg,  #db172a, #980606);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

.report-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.report-logo i {
    font-size: 2.5rem;
}

@keyframes pulse {
    0%, 50%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
}

.report-logo h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.report-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.hazard-form {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.urgency-level {
    margin-bottom: 2rem;
}

.urgency-level label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #495057;
}

.urgency-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.radio-label:hover {
    border-color: #adb5bd;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom.low {
    border-color: #ffc107;
}

.radio-custom.medium {
    border-color: #fd7e14;
}

.radio-custom.high {
    border-color: #dc3545;
}

.radio-label input[type="radio"]:checked + .radio-custom.low {
    background-color: #ffc107;
    border-color: #ffc107;
}

.radio-label input[type="radio"]:checked + .radio-custom.medium {
    background-color: #fd7e14;
    border-color: #fd7e14;
}

.radio-label input[type="radio"]:checked + .radio-custom.high {
    background-color: #dc3545;
    border-color: #dc3545;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 3px;
    left: 3px;
}

.report-submit-btn {
    width: 100%;
    background: linear-gradient(135deg,  #db172a, #980606);
    border: none;
    font-weight: 600;
}

.report-submit-btn:hover {
    background: linear-gradient(135deg,  #db172a, #980606);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ======================= Mobile Responsive ======================= */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .auth-modal-content,
    .report-modal-content {
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .registration-types {
        grid-template-columns: 1fr;
    }
    
    .urgency-options {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-header,
    .report-header {
        padding: 1.5rem;
    }
    
    .auth-section,
    .hazard-form {
        padding: 1.5rem;
    }
}

/* ======================= Success Notification ======================= */
.success-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.notification-content i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.notification-content h3 {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.notification-content p {
    margin-bottom: 1rem;
    color: #495057;
}

.notification-content p:last-of-type {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 3rem 5%;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.hero-content {
    max-width: 600px; /* Reduced from 800px */
    z-index: 2;
    position: relative;
    margin-left: 0; /* Align to left */
}

.hero-title {
    font-size: 3.2rem; /* Slightly reduced */
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem; /* Slightly reduced */
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start; /* Changed from center to flex-start */
    flex-wrap: wrap;
}

/* ======================= Compact Info Panel ======================= */

.hero-info-panel {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%); /* Center vertically */
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced gap */
}

.info-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px; /* Reduced from 16px */
    padding: 16px; /* Reduced from 20px */
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1); /* Softer shadow */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 240px; /* Reduced from 300px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-1px); /* Reduced hover effect */
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    margin-bottom: 12px; /* Reduced from 16px */
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem; /* Reduced from 0.95rem */
}

.card-header i {
    color: #005A9C;
    font-size: 0.95rem; /* Reduced from 1.1rem */
}

/* Compact Map Card */
.mini-map-container {
    height: 120px; /* Reduced from 160px */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px; /* Reduced from 12px */
    position: relative;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.location-dot {
    width: 10px; /* Reduced from 12px */
    height: 10px;
    background: #005A9C;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.3); /* Reduced from 4px */
    animation: pulse 2s infinite;
}

.radius-circle {
    position: absolute;
    width: 60px; /* Reduced from 80px */
    height: 60px;
    border: 2px dashed #005A9C;
    border-radius: 50%;
    opacity: 0.4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radius-circle::after {
    content: '50km';
    position: absolute;
    bottom: -20px; /* Adjusted */
    right: -8px;
    font-size: 0.7rem; /* Reduced */
    color: #6c757d;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px; /* Reduced */
    border-radius: 3px;
    font-weight: 500;
}

/* Compact Weather Card */
.weather-content {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 16px */
}

.weather-today {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px; /* Reduced from 16px */
    background: linear-gradient(135deg, #005A9C 0%, #007bff 100%);
    border-radius: 8px; /* Reduced from 12px */
    color: white;
}

.temp-main {
    font-size: 1.8rem; /* Reduced from 2.2rem */
    font-weight: 700;
    line-height: 1;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced from 6px */
    font-size: 0.75rem; /* Reduced from 0.85rem */
    opacity: 0.9;
}

.weather-details span {
    display: flex;
    align-items: center;
    gap: 4px; /* Reduced from 6px */
}

.weather-details i {
    width: 12px; /* Reduced from 14px */
    font-size: 0.7rem; /* Reduced from 0.8rem */
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px; /* Reduced from 8px 12px */
    background: #f8f9fa;
    border-radius: 6px; /* Reduced from 8px */
    font-size: 0.8rem; /* Reduced from 0.9rem */
    color: #495057;
}

/* Updated Mobile Responsive */
@media (max-width: 1200px) {
    .hero-info-panel {
        right: 20px;
        width: 220px; /* Even smaller on medium screens */
    }
    
    .info-card {
        width: 220px;
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        justify-content: center;
        padding: 2rem 3%;
    }
    
    .hero-content {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-info-panel {
        position: static;
        transform: none;
        margin: 2rem auto 0;
        width: 100%;
        max-width: 300px;
        align-items: center;
    }
    
    .info-card {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .temp-main {
        font-size: 1.5rem;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(0, 90, 156, 0.1); }
    100% { box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.3); }
}

/* ======================= SIH 25 Demo Popup Styles ======================= */

.demo-modal {
    display: flex;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.demo-modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.demo-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    position: relative;
    border: 2px solid var(--primary-color);
}

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

.demo-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.demo-close-button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.demo-popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.demo-star-icon {
    font-size: 3rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 10px;
    animation: starRotate 2s ease-in-out infinite;
}

@keyframes starRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

.demo-popup-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 10px 0 5px;
    font-weight: bold;
}

.demo-popup-body {
    margin-bottom: 25px;
}

.demo-welcome-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.demo-main-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.5;
}

.demo-instruction {
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
    background-color: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
}

.demo-credentials-box {
    background-color: #f0f7ff;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.demo-credentials-box p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.demo-credentials-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.demo-credentials-box li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 90, 156, 0.1);
}

.demo-credentials-box li:last-child {
    border-bottom: none;
}

.demo-credentials-box li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.demo-close-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.3);
}

.demo-close-btn:hover {
    background-color: #003d73;
    box-shadow: 0 6px 16px rgba(0, 90, 156, 0.4);
    transform: translateY(-2px);
}

.demo-close-btn:active {
    transform: translateY(0);
}

/* Responsive Design for Demo Popup */
@media (max-width: 600px) {
    .demo-modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 20px;
    }

    .demo-popup-header h2 {
        font-size: 1.6rem;
    }

    .demo-star-icon {
        font-size: 2.5rem;
    }

    .demo-instruction {
        font-size: 0.9rem;
        padding: 12px;
    }

    .demo-credentials-box {
        padding: 12px;
    }

    .demo-credentials-box li {
        font-size: 0.85rem;
    }
}

