/* Styling for guide context menu */
.guide-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;
}

.guide-context-menu.show {
    display: block;
}

.guide-menu-title {
    padding: 8px 12px;
    font-weight: bold;
    color: #555;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    font-size: 14px;
}

.guide-menu-section {
    padding: 5px 12px;
    font-size: 12px;
    color: #888;
    font-weight: bold;
}

.guide-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px;
}

.guide-menu-item:hover {
    background-color: #f0f0f0;
}

.guide-menu-item.active {
    background-color: #e8f0fe;
    font-weight: bold;
    color: #4a90e2;
}

.guide-menu-separator {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

/* Fractional guide styling */
.guide-line.relative-position {
    border-top-color: #4a90e2;
    border-left-color: #4a90e2;
    border-top-style: solid;
    border-left-style: solid;
    border-width: 1px;
}

/* Ruler-positioned guide styling */
.guide-line.ruler-position {
    border-top-color: #5cb85c;
    border-left-color: #5cb85c;
    border-top-style: solid;
    border-left-style: solid;
    border-width: 1px;
}

/* Mount-edge guide styling */
.guide-line.mount-edge-position {
    border-top-color: #f0ad4e;
    border-left-color: #f0ad4e;
    border-top-style: solid;
    border-left-style: solid;
    border-width: 1px;
}

.guide-line.dragging.relative-position,
.guide-line.dragging.ruler-position,
.guide-line.dragging.mount-edge-position {
    border-top-color: #2a70c2;
    border-left-color: #2a70c2;
}

/* Tooltip for special positioned guides */
.guide-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 201;
    pointer-events: none;
    white-space: nowrap;
}

.guide-line:hover .guide-tooltip {
    display: block;
}

/* Tooltip for special positioned guides */
.guide-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 201;
    pointer-events: none;
    white-space: nowrap;
}

/* Special styling for edge-positioned guide tooltips */
.guide-line.mount-edge-position .guide-tooltip {
    background-color: rgba(240, 173, 78, 0.8); /* Match the orange color of edge guides */
    font-weight: bold;
    padding: 3px 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.guide-line:hover .guide-tooltip {
    display: block;
}