/* General Body Style to accommodate fixed bottom nav */
body {
    padding-bottom: 70px; /* Adjust based on nav height */
}

/* Custom Card Styles for Dashboard */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.stat-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}
.stat-card .stat-icon {
    font-size: 3rem;
    opacity: 0.7;
}
.stat-card .card-title {
    font-weight: 500;
    color: #6c757d;
}
.stat-card .card-text {
    font-size: 2.25rem;
    font-weight: 700;
}

/* New Full-screen Map Styles */
#map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
#main-map {
    width: 100%;
    height: 100%; /* Height is set by inline script */
}

#map-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}


/* Old map styles for other pages */
#report-map, #dashboard-map, #help-map {
    height: 450px;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

/* Leaflet Popup Styles */
.leaflet-popup-content {
    margin: 15px;
    min-width: 250px;
    max-width: 300px;
}
.popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
}

/* Report Form Adjustments */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge Colors for Severity */
.badge-น้อย { background-color: #198754 !important; }
.badge-ปานกลาง { background-color: #ffc107 !important; color: #000 !important; }
.badge-มาก { background-color: #fd7e14 !important; }
.badge-วิกฤติ { background-color: #dc3545 !important; }

/* DataTables Customization */
.dataTables_wrapper .row {
    margin-bottom: 1rem;
}

/* Bottom Navigation Bar */
#bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}
#bottom-navigation .nav-link {
    padding: 0.75rem 0.5rem;
    color: #6c757d;
    transition: color 0.15s ease-in-out;
}
#bottom-navigation .nav-link.active {
    color: #0d6efd;
}
#bottom-navigation .nav-link:hover {
    color: #0d6efd;
}
#bottom-navigation .small {
    font-size: 0.75rem;
}
