.dashboard-body {
    padding: 0;
}

.dashboard-main {
    padding: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* Controls bar                                                        */
/* ------------------------------------------------------------------ */
.controls-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.control-group label {
    font-weight: 600;
    color: #444;
    font-size: 12px;
}

.control-group select,
.control-group input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 13px;
    background-color: #fafafa;
    min-width: 160px;
}

.search-group {
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
}

.search-group input {
    min-width: 180px;
}

.search-group button {
    padding: 8px 14px;
    background-color: #005A9C;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.search-group button:hover {
    background-color: #00457a;
}

/* ------------------------------------------------------------------ */
/* Map + list layout                                                   */
/* ------------------------------------------------------------------ */
.dashboard-layout {
    display: flex;
    gap: 15px;
    height: 70vh;
    min-height: 420px;
}

.map-container {
    flex: 1 1 65%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.report-list-panel {
    flex: 1 1 35%;
    max-width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 16px;
    overflow-y: auto;
}

.report-list-panel h3 {
    margin: 0 0 6px 0;
    color: #005A9C;
    font-size: 16px;
}

.report-list-status {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.report-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.report-list-item:hover {
    background-color: #f4f8fc;
    border-color: #cfe0ee;
}

.report-list-rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #005A9C;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-list-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.report-list-desc {
    font-size: 13px;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.report-list-meta {
    font-size: 11px;
    color: #888;
}

/* ------------------------------------------------------------------ */
/* Leaflet popup content                                               */
/* ------------------------------------------------------------------ */
.popup-content {
    font-size: 13px;
    min-width: 200px;
}

.popup-header {
    font-weight: 700;
    color: #005A9C;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.popup-desc {
    margin: 4px 0;
    color: #333;
}

.popup-photo {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin: 6px 0;
    display: block;
}

.popup-meta {
    margin: 4px 0;
    color: #888;
    font-size: 12px;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.badge-open {
    background: #fdecea;
    color: #c62828;
}

.badge-resolved {
    background: #e8f5e9;
    color: #2e7d32;
}

.resolve-btn {
    margin-top: 8px;
    width: 100%;
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.resolve-btn:hover {
    background-color: #1b5e20;
}

.resolve-btn:disabled {
    background-color: #9aa5ad;
    cursor: default;
}

.share-btn {
    margin-top: 6px;
    width: 100%;
    background-color: #25D366; /* WhatsApp brand green */
    color: white;
    border: none;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.share-btn:hover {
    background-color: #1ebc59;
}

/* ------------------------------------------------------------------ */
/* Mobile: stack list under map                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 800px) {
    .dashboard-layout {
        flex-direction: column;
        height: auto;
    }

    .map-container {
        height: 50vh;
        min-height: 320px;
    }

    .report-list-panel {
        max-width: none;
        max-height: 300px;
    }
}
