/* Report Panel Styles */
.report-panel {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    height: 100vh;
    background-color: #f9f9f9;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.report-panel h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.report-content {
    width: 100%;
    height: calc(100% - 80px);
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.hide-report-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10000;
}

.hide-report-button:hover {
    background-color: #c82333;
}

.show-report-button {
    position: absolute;
    top: 10px;
    right: 180px; /* Position it to the left of "Show Map Legend" button */
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.show-report-button:hover {
    background-color: #218838;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .report-panel {
        width: 500px;
    }
}

@media (max-width: 768px) {
    .report-panel {
        width: 100%;
    }

    .show-report-button {
        right: 10px;
        top: 50px; /* Move below other buttons on small screens */
    }
}
