/* Styling for aperture context menu */
.aperture-context-menu {
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
    min-width: 180px;
    display: none;
}

.aperture-context-menu.show {
    display: block;
}

.aperture-menu-title {
    padding: 8px 12px;
    font-weight: bold;
    color: #555;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    font-size: 14px;
}

.aperture-menu-section {
    padding: 5px 12px;
    font-size: 12px;
    color: #888;
    font-weight: bold;
    margin-bottom: 2px;
}

.aperture-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px;
}

.aperture-menu-item:hover {
    background-color: #f0f0f0;
}

.aperture-menu-item.active {
    background-color: #e8f0fe;
    font-weight: bold;
    color: #4a90e2;
}

.aperture-menu-item.delete-item {
    color: #e74c3c;
}

.aperture-menu-item.delete-item:hover {
    background-color: #ffeeee;
}

.aperture-menu-item.disabled {
    opacity: 0.6;
}

.aperture-menu-item.disabled:hover {
    background-color: transparent;
}

.aperture-menu-separator {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

/* Shape styling for aperture */
.apert1.shape-rectangle {
    border-radius: 0;
    clip-path: none;
}

.apert1.shape-oval {
    /* Create a true ellipse using clip-path */
    clip-path: ellipse(50% 50% at 50% 50%);
    /* Fallback for browsers that don't support clip-path well */
    border-radius: 50% / 50%; 
}

.apert1.shape-circle {
    /* For circle, we'll use a circle clip path */
    clip-path: circle(50% at 50% 50%);
    /* Fallback for browsers that don't support clip-path well */
    border-radius: 50%;
}