.problem-details {
    display: none;
    flex-direction: column;
    gap: 15px;
    /* Add spacing between sections */
    padding: 20px;
    /* Add padding inside the container */
    background: linear-gradient(to bottom, #333, #222);
    /* Gradient background */
    color: whitesmoke;
    /* Text color */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Add shadow for depth */
}

.clear-focused-problem-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    margin-left: 0;
    padding: 10px 20px;
    color: white;
    background-color: #444;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.clear-focused-problem-btn:hover {
    background-color: #666;
}

.clear-focused-problem-btn svg {
    fill: white;
    stroke: white;
    stroke-width: 1px;
    /* Match the icon color with the text */
}

.view-in-area-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-left: auto;
    padding: 10px 10px;
    gap: 2px;
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.view-in-area-btn:hover {
    background-color: #058130;
}

.problem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space out elements horizontally */
}

.problem-header .problem-status {
    font-size: 24px;
    /* Larger icon for status */
}

.problem-header .problem-title {
    font-size: 20px;
    font-weight: bold;
    flex: 1;
    /* Allow title to take up remaining space */
}

.problem-header .problem-options {
    font-size: 24px;
    /* Larger icon for options */
    cursor: pointer;
    /* Pointer cursor for interactivity */
}

#problem-description {
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 16px;
    margin-bottom: 0px;
}

.problem-bottom-details {
    border-top: 1px solid white;
    padding-top: 20px;
}

.mini-header {
    font-size: 12px;
    font-weight: bold;
}

.problem-extra-detail {
    padding-left: 20px;
    padding-bottom: 16px;
    font-size: 20px;
    font-weight: 400;
}

#problem-characteristics {
    font-size: 24px;
    font-weight: bold;
}

.problem-location {
    display: flex;
    gap: 10px;
    /* Add spacing between buttons */
}

.problem-image-wrapper {
    position: relative;
    /* Allows stacking of the placeholder and image */
    width: 100%;
    /* Matches the image width */
    aspect-ratio: 1;
    border-radius: 8px;
    /* Matches the rounded corners of the image */
    overflow: hidden;
    /* Ensures the image doesn't overflow the wrapper */
}

/* Placeholder background */
.problem-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #cbbaba;
    /* Placeholder background color */
    border-radius: 8px;
    /* Matches the wrapper and image corners */
    z-index: 1;
    /* Ensures it is behind the image */
}

/* Image styling */
.problem-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    /* Ensures it is above the placeholder */
    width: 100%;
    /* Fill the wrapper */
    height: 100%;
    border-radius: 8px;
    /* Matches the wrapper and placeholder corners */
    object-fit: cover;
    /* Ensures the image fits within the dimensions */
    opacity: 0;
    /* Start fully transparent */
    transition: opacity 0.5s ease-in-out;
    /* Smooth fade-in effect */
}

/* When the image is loaded */
.problem-image-wrapper img.loaded {
    cursor: pointer;
    opacity: 1;
    /* Fully visible when loaded */
}

#problem-canvas {
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
}

/* Modal container */
.modal {
    display: none;
    /* Initially hidden */
    position: fixed;
    /* Fixed position to overlay the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent background */
    z-index: 1000;
    /* Ensure it appears above all other content */
    justify-content: center;
    /* Center content horizontally */
    align-items: center;
    /* Center content vertically */
}

@media (min-width: 768px) {
    .modal-content {
        height: 800px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 80%;
        max-height: 80%;
    }
}

/* Modal content */
.modal-content {
    position: relative;
    background-color: #fff;
    /* White background for the modal */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Add shadow for depth */
    aspect-ratio: 1;
    overflow: hidden;
    /* Prevent content overflow */
}

/* Modal image */
#modal-image {
    top: 0;
    left: 0;
    width: 100%;
    /* Make the image responsive */
    height: 100%;
    /* Maintain aspect ratio */
    border-radius: 8px;
    /* Match the modal content corners */
    position: absolute;
    z-index: 2;
}

/* Close button */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 4;
}

#problem-canvas-modal {
    top: 0;
    left: 0;
    width: 100%;
    /* Make the image responsive */
    height: 100%;
    /* Maintain aspect ratio */
    z-index: 3;
    pointer-events: none;
    position: absolute;
}