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

main {
    padding-top: 40px;
    margin: 0;
    flex: 1;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    background: #f4f5f7;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    width: 320px;
    background: #f6f6f6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    /* Prevent sidebar from shrinking, which causes the gap */
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
    border-right: none;
    overflow: hidden;
}

.sidebar-toggle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 320px;
    z-index: 2000;
    background: #fff;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 8px 4px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -2px;
    /* Increased overlap to safeguard against sub-pixel rendering gaps */
}

.sidebar-toggle-btn.btn-collapsed {
    left: 0;
    margin-left: 0;
    border-left: 1px solid #ddd;
    /* Restore border when detached */
}

.sidebar-toggle-btn:hover {
    background: #f0f0f0;
}

.sidebar.collapsed+.map-container .sidebar-toggle-btn {
    left: 0;
    /* Moves to left edge when collapsed - wait, structure check */
}


h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

label {
    font-size: 0.9em;
    color: #555;
    display: block;
    margin-top: 10px;
}

select {
    width: 100%;
    padding: 10px;
    margin: 6px 0 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.95rem;
}

.recent-reports {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 5px;
}

.report-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.report-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 125, 250, 0.15);
    border-color: #397DFA;
}

.report-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-icon-box .material-icons {
    font-size: 20px;
}

.severity-high {
    background-color: #ffebee;
    color: #d32f2f;
}

.severity-moderate {
    background-color: #fff8e1;
    color: #fbc02d;
}

.severity-low {
    background-color: #e8f5e9;
    color: #388e3c;
}

.report-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.report-content strong {
    font-size: 0.95rem;
    color: #1f3b73;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.report-address {
    font-size: 0.8rem;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.buttons {
    margin-bottom: 25px;
    margin-top: 10px;
}

.post-btn {
    background: #2563eb;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    width: 100%;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.post-btn:hover {
    background: #1d4ed8;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
}

/* Notification Bell Styling */
.notification-wrapper {
    position: relative;
    display: inline-block;
    pointer-events: auto;
    /* Ensure wrapper handles clicks */
}

#notificationBtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    /* Match .map-btn padding */
    height: auto;
    /* Let padding define height like other buttons */
    width: auto;
    /* Remove fixed width */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Specific adjustment to align the icon nicely */
#notificationBtn .material-icons {
    font-size: 20px;
    color: #444;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dropdown Styling */
.notification-dropdown {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 50px;
    /* Below the button */
    right: 0;
    /* Align to right of wrapper */
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.notification-header button {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
}

.notification-header button:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #fff4f4;
    /* Light red/pink tint for unread */
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    color: #ff4444;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 2px;
}

.notification-location {
    font-size: 12px;
    color: #666;
    display: block;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 4px;
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.map-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.map-btn:hover {
    background: #f0f0f0;
}

.map-btn.active {
    background-color: #397DFA;
    color: white;
    border-color: #397DFA;
}


.map-legend {
    position: absolute;
    bottom: 30px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 0.85rem;
    width: 170px;
    border: 1px solid #ddd;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    color: #1f3b73;
    font-size: 0.95rem;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #444;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-dot.high {
    background-color: #d32f2f;
}

.color-dot.moderate {
    background-color: #fbc02d;
}

.color-dot.low {
    background-color: #28a745;
}

.color-dot.current {
    background-color: #2563eb;
}

/* Legend Info Guide Styling */
.legend-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
}

.map-legend h4 {
    margin: 0;
}

.legend-info-icon {
    font-size: 18px;
    color: #999;
    cursor: help;
    transition: color 0.2s;
}

.legend-info-icon:hover {
    color: #397DFA;
}

.legend-info-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    /* Shows above the legend */
    right: 0;
    width: 320px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    z-index: 2000;
    margin-bottom: 12px;
    text-align: left;
    animation: fadeIn 0.2s ease-out;
}

.legend-info-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 6px;
    /* Align near the info icon */
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.legend-header:hover .legend-info-popup {
    display: block;
}

.legend-info-popup h5 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: #1f3b73;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.legend-guide-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

.legend-guide-item:last-child {
    margin-bottom: 0;
}

.legend-guide-item .color-dot {
    flex-shrink: 0;
    margin-top: 4px;
}

.legend-guide-item strong {
    color: #333;
}

.content {
    display: flex;
    flex: 1;
    margin-top: 0;
    height: calc(100vh - 65px);
    overflow: hidden;
    animation: fadeInUp 1s ease;
    position: relative;
    /* Essential for sidebar toggle positioning */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    cursor: pointer;
    color: black;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 100px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    right: 0;
    border-radius: 8px;
    padding: 8px 0;
}

.user-info-display {
    padding: 10px 12px;
    border-radius: 8px;
    margin: 0 8px 8px 8px;
    background-color: #f5f5f5;
    cursor: pointer;
    border: 1px solid #eee;
    transition: background-color 0.2s;
}

.user-info-display:hover {
    background-color: #ebebeb;
}

.user-display-name {
    font-weight: 600;
    color: #1f3b73;
    font-size: 1rem;
    margin: 0;
}

.user-email,
.user-role {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

.dropdown-content a {
    color: #000;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    margin: 0 8px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 8px;
}

.user-dropdown.show .dropdown-content {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    border: none;
    width: 95%;
    max-width: 550px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 0;
    overflow-y: auto;
}

.modal-header-section {
    padding: 25px 25px 10px 25px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-right: 25px;
}

#modalTitle {
    margin: 0;
    font-size: 1.6rem;
    color: #1f3b73;
    line-height: 1.2;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-high {
    background-color: #ffebee;
    color: #d32f2f;
}

.badge-moderate {
    background-color: #fff8e1;
    color: #fbc02d;
}

.badge-low {
    background-color: #e8f5e9;
    color: #388e3c;
}

.badge-default {
    background-color: #eef3ff;
    color: #397DFA;
}

.meta-row {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.meta-type {
    font-weight: 600;
    color: #444;
    text-transform: capitalize;
}

.dot-separator {
    margin: 0 8px;
    color: #ccc;
}

.modal-image-container {
    width: 100%;
    max-height: 400px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 15px;
    overflow: hidden;
}

.incident-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a0a0a0;
    padding: 40px 0;
}

.no-image-placeholder .material-icons {
    font-size: 48px;
    margin-bottom: 5px;
    opacity: 0.5;
}

.description-box {
    padding: 20px 25px;
}

.description-box h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #444;
}

.description-box p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.location-box {
    display: flex;
    align-items: flex-start;
    color: #555;
    font-size: 0.9rem;
    gap: 10px;
    line-height: 1.4;
    padding: 0 25px 20px 25px;
}

.icon-loc {
    font-size: 20px;
    color: #397DFA;
    margin-top: 2px;
    flex-shrink: 0;
}

.divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 0;
}

.comments-section {
    padding: 20px 25px 25px 25px;
    background-color: #fcfcfc;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comments-section h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.comment-count {
    background: #eef3ff;
    color: #397DFA;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comments-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.comment-item {
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.comment-official {
    border-left: 4px solid #397DFA;
    background-color: #f0f7ff;
}

.comment-user {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.comment-date {
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.no-comments {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.add-comment {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: white;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 5px 5px 5px 15px;
}

.add-comment textarea {
    flex-grow: 1;
    border: none;
    resize: none;
    outline: none;
    padding: 8px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    max-height: 80px;
}

.btn-comment {
    background-color: #397DFA;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-comment:hover {
    background-color: #2f6be0;
}

.btn-comment .material-icons {
    font-size: 18px;
    margin-left: 2px;
}

.profile-modal-content {
    max-width: 650px;
    background-color: #ffffff;
    color: #333;
    padding-bottom: 0;
    animation: slideUp 0.3s ease-out;
}

.profile-header-background {
    background-color: #397DFA;
    height: 90px;
    border-radius: 16px 16px 0 0;
}

.profile-info-section {
    padding: 20px 30px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.profile-header-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0 30px;
    margin-top: -10px;
    margin-bottom: 20px;
    position: relative;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #f6f6f6;
    border: 6px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.profile-header-details {
    margin-left: 20px;
    margin-top: 15px;
    /* Reduced from 40px to pull text up closer to the header line */
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align text */
}

.profile-header-details h2 {
    margin: 0 0 8px 0;
    /* Space between name and badges */
    font-size: 1.8rem;
    /* Slightly larger */
    font-weight: 800;
    color: #222;
    line-height: 1;
}

#profileBadgesContainer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Left align badges */
}

.badge-item {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #FFD700;
    /* Gold border */
    border-radius: 8px;
    /* Softer corners */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
    /* Golden shadow */
    transition: transform 0.2s;
}

.badge-item:hover {
    transform: translateY(-2px);
}

.badge-item .material-icons {
    font-size: 18px;
    color: #FFC107;
    /* Richer Amber/Gold */
}

.info-group {
    background-color: #f6f6f6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.label {
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value {
    font-size: 1rem;
    color: #333;
    margin: 0;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.edit-btn {
    background: #397DFA;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
    flex-shrink: 0;
}

.edit-btn:hover {
    background: #2f6be0;
}

.modal-action-bar {
    padding: 15px 30px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.save-btn,
.cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.save-btn {
    background: #397DFA;
    color: #fff;
}

/* Custom Map Markers */
/* Custom Map Markers - Enhanced Premium Look */
.custom-map-marker {
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    /* Deeper shadow for "pop" */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    /* Thicker white border */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy hover */
}

.custom-map-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.custom-map-marker .material-icons {
    color: #fff;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Subtle text shadow for depth */
}

/* Gradients for "Glassy/Premium" feel */
.custom-map-marker.map-severity-high {
    background: linear-gradient(135deg, #ff5252, #c62828);
    border-color: #fff;
}

.custom-map-marker.map-severity-moderate,
.custom-map-marker.map-severity-medium {
    background: linear-gradient(135deg, #ffeb3b, #fbc02d);
    border-color: #fff;
}

.custom-map-marker.map-severity-moderate .material-icons,
.custom-map-marker.map-severity-medium .material-icons {
    color: #000;
    text-shadow: none;
    /* No shadow on black text */
}

.custom-map-marker.map-severity-low {
    background: linear-gradient(135deg, #66bb6a, #2e7d32);
    border-color: #fff;
}

.custom-map-marker.map-severity-default {
    background: linear-gradient(135deg, #42a5f5, #1565c0);
    border-color: #fff;
}

/* Resolved Styles */
.custom-map-marker.marker-resolved {
    /* Background removed to let severity gradient show through */
    border: 3px solid #4CAF50 !important;
    /* Green border */
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.8) !important;
    /* Green Glow */
}

.report-box.resolved-report {
    border-left: 5px solid #4caf50;
    background-color: #f1f8f1;
}

.report-box.resolved-report:hover {
    border-color: #4caf50;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.15);
}

.cancel-btn {
    background: #555;
    color: #fff;
}

.save-btn:hover,
.cancel-btn:hover {
    opacity: 0.8;
}

.profile-modal-content .close-modal {
    color: #555;
    right: 25px;
}

.profile-modal-content .close-modal:hover {
    color: #333;
}

.info-row input[type="text"],
.info-row input[type="email"],
.info-row input[type="password"] {
    background: #ffffff;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px;
    border-radius: 4px;
    width: 65%;
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid #ddd;
        order: 2;
    }

    .map-container {
        width: 100%;
        height: 50vh;
        order: 1;
    }

    .map-legend {
        bottom: 10px;
        right: 10px;
        width: auto;
        padding: 8px;
        font-size: 0.75rem;
    }

    .map-legend h4 {
        margin-bottom: 5px;
        font-size: 0.85rem;
    }

    .legend-item {
        margin-bottom: 3px;
    }

    .top-controls {
        top: 20px;
        right: 10px;
    }

    .map-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}