/* Map Manager Modal Styling */
#map-manager-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 400px; /* Reduced width for a more compact look */
    text-align: left;
    font-family: 'Arial', sans-serif;
}

#map-manager-modal h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center; /* Centered title for better focus */
}

#map-manager-modal .close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: absolute;
    top: 10px;
    right: 10px; /* Positioned to the top-right corner for easy access */
}

#map-manager-modal .create-map-btn {
    padding: 12px 20px;
    margin-bottom: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center button content */
    transition: background-color 0.3s ease; /* Smooth background transition */
}

#map-manager-modal .create-map-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

#map-manager-modal .create-map-btn .icon-plus {
    margin-right: 8px;
    background-image: url('icons/plus-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
}

.map-list-container {
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px; /* Added space above the list */
}

#map-manager-modal ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.map-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.map-item:hover {
    background-color: #ececec;
}

.map-info {
    display: flex;
    align-items: center;
}

.map-name {
    font-size: 18px; /* Adjusted font size for consistency */
    margin-left: 10px;
}

.map-item .icon-map {
    background-image: url('icons/map-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.map-actions {
    display: flex;
    gap: 10px;
}

.map-actions button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.map-actions button.edit-btn {
    background-color: #ffc107;
}

.map-actions button.delete-btn {
    background-color: #dc3545;
}

.map-actions button:hover {
    opacity: 0.8;
}

/* Custom scrollbar for map list */
.map-list-container::-webkit-scrollbar {
    width: 8px;
}

.map-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.map-list-container::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
}
