/* Full screen map */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
}

#map {
    height: 100%;
    width: 100%;
}

/* Description box styling */
#description-box {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

#feature-name {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;  /* Prevent content from bleeding out */

}

#feature-name:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#description-textarea {
    width: 100%;
    height: 200px;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    resize: none;
    box-sizing: border-box;  /* Prevent content from bleeding out */

}

#description-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.color-palette {
    display: flex;
    justify-content: space-between;
    width: 120px;
    margin: 5px auto;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
}

/* Tool button styling */

#tool-buttons button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#tool-buttons button:hover {
    background-color: #0056b3;
}

#tool-buttons button.active {
    background-color: #28a745 !important;
}

/* Side bar styling */

#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #f4f4f4;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-family: Arial, sans-serif;
}
#sidebar-header h2, #sidebar-header h3 {
    display: inline;
    margin: 10;  /* Remove default margin */
}
#sidebar-header h2 {
    font-size: 24px;  /* Bigger font for Propel */
    font-weight: bold;  /* Bold text */
    margin: 0;
    color: #000;  /* Darker text color for Propel */
}

#sidebar-header h3 {
    font-size: 24px;  /* Smaller font for Mapper */
    font-style: italic;  /* Italic text for Mapper */
    font-weight: normal;  /* Lighter weight */
    color: #313030;  /* Lighter text color for Mapper */
    margin: 0;
}

#sidebar button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#sidebar button:hover {
    background-color: #0056b3;
}

#feature-list h3 {
    margin-bottom: 10px;
}

#feature-items::before {
    content: 'Click on map to add Points or Polygons';
    display: block;
    text-align: center;
    padding: 20px;
    border: 2px dashed #313030;
    border-radius: 7px;
    color: #313030;
    margin: 10px 0;
}

#feature-items.has-features::before {
    display: none; /* Hide placeholder when there are features */
}

/* Feature items list */
#feature-items {
    list-style-type: none;
    padding: 0;
    margin: 20;
    max-height: 350px; /* Max height to enable scrolling */
    overflow-y: auto; /* Vertical scrolling */
}

#feature-items li {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#feature-items li:hover {
    background-color: #f0f0f0;
}

.feature-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.delete-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
