/* Custom styles for Beaumont YOLO Annotator */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Box styles on SVG */
.yolo-box {
    cursor: move;
    transition: stroke-width 0.15s ease;
}

.yolo-box:hover {
    stroke-width: 3.5px;
}

.yolo-box.active {
    stroke-width: 4px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.yolo-box-handle {
    cursor: nwse-resize;
    fill: #ffffff;
    stroke: #0f172a;
    stroke-width: 1.5px;
    transition: r 0.15s ease;
}

.yolo-box-handle:hover {
    r: 6px;
}

.yolo-box-tag {
    font-size: 11px;
    font-weight: 700;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    user-select: none;
    pointer-events: none;
}

/* Class Button Active States */
.class-btn.selected {
    ring-width: 2px;
    outline: 2px solid currentColor;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Tool Mode Active States */
.tool-btn.active {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

/* Picture Quality & HDR Filters */
.img-hdr {
    filter: contrast(145%) brightness(96%) saturate(125%) !important;
    image-rendering: -webkit-optimize-contrast !important;
}

.img-invert {
    filter: invert(100%) hue-rotate(180%) contrast(140%) !important;
}

.img-hdr.img-invert {
    filter: invert(100%) hue-rotate(180%) contrast(165%) brightness(96%) !important;
}

/* Stage & Viewport */
#stage-content {
    will-change: transform;
    transform-origin: 0 0;
}

.panning {
    cursor: grabbing !important;
    user-select: none !important;
}

.panning * {
    cursor: grabbing !important;
    user-select: none !important;
}
