/* SVG Picker Overlay within a container */
.svg-picker-overlay {
    position: absolute; /* Relative to the parent */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1040;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SVG Picker Container */
.svg-picker-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    max-height: 90%;
    width: 90%; /* 90% of the overlay width */
    max-width: 600px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin: auto;
    margin-top: 20px;
}

.svg-picker-item {
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #eee;
    width: 50px !important;   /* Fill the container */
    height: 50px !important;  /* Fill the container */
}

.svg-picker-item:hover {
    background-color: #eee;
    border-color: #ddd;
}

.svg-picker-item img {
    object-fit: contain; /* Ensure aspect ratio is maintained */
}
