/* Styling for the custom context menu */
.custom-context-menu {
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
    min-width: 150px;
    display: none;
}

.custom-context-menu.show {
    display: block;
}

.menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.menu-item:hover {
    background-color: #f0f0f0;
}

.menu-item.active {
    background-color: #e8f0fe;
    font-weight: bold;
}

.menu-separator {
    height: 1px;
    background-color: #ddd;
    margin: 5px 0;
}

.menu-title {
    padding: 8px 12px;
    font-weight: bold;
    color: #555;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

/* Shape styling for mount */
.mount.shape-rectangle {
    border-radius: 0;
    clip-path: none;
}

.mount.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%; 
}

.mount.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%;
    /* For a true circle, we'll ensure equal width/height in JS */
}

/* Styling for the Mirror Apertures feature in aperture-context-menu.js */

/* Mirror section container - slightly indented */
.mirror-options-container {
    border-left: 2px solid rgba(74, 144, 226, 0.2);
    margin-left: 2px;
    padding-left: 3px;
}

/* Mirror section title - collapsible section */
.aperture-menu-section.clickable-section {
    padding: 8px 12px;
    background-color: #f5f5f5;
    transition: background-color 0.2s ease;
    border-radius: 3px;
    user-select: none;
}

.aperture-menu-section.clickable-section:hover {
    background-color: #e8e8e8;
}

/* Expand/collapse indicators */
.expand-indicator {
    position: absolute;
    right: 10px;
    transition: transform 0.2s;
}

/* Mirror menu items */
.mirror-options-container .aperture-menu-item {
    position: relative;
    padding-left: 28px; /* Space for icon */
    transition: background-color 0.2s;
}

.mirror-options-container .aperture-menu-item:hover {
    background-color: #f0f7ff;
}

/* Mirror direction icons */
.mirror-options-container .aperture-menu-item::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.7;
}

/* Right mirror icon */
.mirror-options-container .aperture-menu-item:nth-child(1)::before {
    content: '↔';
    color: #4a90e2;
}

/* Left mirror icon */
.mirror-options-container .aperture-menu-item:nth-child(2)::before {
    content: '↔';
    color: #4a90e2;
}

/* Top mirror icon */
.mirror-options-container .aperture-menu-item:nth-child(3)::before {
    content: '↕';
    color: #4a90e2;
}

/* Bottom mirror icon */
.mirror-options-container .aperture-menu-item:nth-child(4)::before {
    content: '↕';
    color: #4a90e2;
}

/* Animation for newly mirrored apertures */
@keyframes mirror-highlight {
    0% { box-shadow: 0 0 0 2px rgba(74, 144, 226, 0); }
    25% { box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.7); }
    100% { box-shadow: 0 0 0 2px rgba(74, 144, 226, 0); }
}

.mirrored-aperture {
    animation: mirror-highlight 1.5s ease-out;
}

/* Improved expanded section styling */
.aperture-menu-section.clickable-section + div {
    margin-top: 5px;
    margin-bottom: 5px;
}