:root {
    --bg-dark: #121212;
    --accent-color: #00D1FF;
}

body {
    background-color: var(--bg-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden; /* Prevent scrolling during AR/Ruler modes */
}

/* Custom UI Buttons */
.custom-btn {
    border-color: #333 !important;
    background-color: #1e1e1e !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.custom-btn:hover, .custom-btn:active {
    background-color: #2a2a2a !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    margin-top: -6px;
}
.custom-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #444;
    border-radius: 2px;
}

/* Screen Ruler Styles */
.ruler-h {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(30,30,30,0.9);
    border-bottom: 2px solid var(--accent-color);
    pointer-events: none;
    z-index: 1010;
}

.ruler-v {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: rgba(30,30,30,0.9);
    border-right: 2px solid var(--accent-color);
    pointer-events: none;
    z-index: 1010;
}

.calibration-panel {
    min-width: 320px;
    max-width: 90%;
    z-index: 1020;
}

.transition-fade {
    transition: opacity 0.5s ease;
}

.tick-h {
    position: absolute;
    top: 0;
    width: 1px;
    background-color: #fff;
}
.tick-v {
    position: absolute;
    left: 0;
    height: 1px;
    background-color: #fff;
}
.tick-label-h {
    position: absolute;
    top: 25px;
    color: #eee;
    font-size: 12px;
    transform: translateX(-50%);
    font-weight: bold;
}
.tick-label-v {
    position: absolute;
    left: 25px;
    color: #eee;
    font-size: 12px;
    transform: translateY(-50%);
    font-weight: bold;
}
