body { 
    margin: 0; 
    overflow: hidden; 
}
canvas { 
    display: block;
    background-color: #1a1a1a; /* Darker background for better grid visibility */
}

body, canvas {
    cursor: none; /* hide browser cursor */
}
#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
}

.cursor-horizontal, .cursor-vertical {
    position: absolute;
    background: rgba(255,255,255,0.7);
}

.cursor-horizontal {
    width: 60px;
    height: 1px;
    left: -30px;
    top: 0;
}

.cursor-vertical {
    width: 1px;
    height: 60px;
    left: 0;
    top: -30px;
}

.cursor-box {
    position: absolute;
    width: 8px;
    height: 8px;
    background: none;
    border: 1px solid rgba(255,255,255,0.7);
    left: -5px;
    top: -5px;
}

.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-height: 80vh;
    overflow: hidden;
}

.notification {
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    max-width: 300px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    position: relative;
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.notification.success {
    background-color: rgba(46, 125, 50, 0.9);
    border-left: 4px solid #2e7d32;
}

.notification.warning {
    background-color: rgba(237, 108, 2, 0.9);
    border-left: 4px solid #ed6c02;
}

.notification.error {
    background-color: rgba(211, 47, 47, 0.9);
    border-left: 4px solid #d32f2f;
}
.notification::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
}

.notification.success::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}

.notification.warning::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>');
}

/* Add to styles.css */
/* Add to styles.css */
.measurement-input {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 6px 10px;
    border-radius: 4px;
    color: white;
    font-family: Arial, sans-serif;
    display: none;
    z-index: 100;
    pointer-events: auto;
    white-space: nowrap;
}

.measurement-input input {
    display: inline-block;
    width: 80px;
    padding: 4px;
    margin-right: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 2px;
    color: #333;
    font-family: monospace;
    font-weight: bold;
}

.measurement-input .unit-label {
    margin-left: 5px;
    font-size: 0.9em;
    opacity: 0.8;
}

.unit-toggle {
    position: absolute;
    bottom: 60px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.unit-toggle:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

header{
    position: absolute;
    top: 10px;
    width: 85%;
    margin: 0 auto;
    display: flex;
    padding: 10px 7%;
    background-color: rgba(28, 28, 28, 1.0);
    border-radius: 5px;
    flex-direction: column;
    align-items: left;
}

header p {
    font-family: Arial;
    font-size: 8px;
    color: #888;
    margin: 0;
    padding-top: 4px;
    padding-left: 40px;
}

.main-name{
    color: #009999;
    font-family: Arial;
    font-size: 15px;
    margin: 0;
}
.floating-box {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    min-width: 80%;
    height: 1000px;
    min-height: 87%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

#webgl-container {
    width: 100%;
    height: 100%;
}
.bottom-bar {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background-color: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn {
    background: #404040;
    margin: 1px;
    color: #999999;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 3px;
    width: 150px;
    box-shadow: none;
    border: none;
}
.btn:hover {
    color: white;
}
.bottom-bar:hover {
    bottom: 15px;
    transition: 1s ease;
    gap: 3px;
}

.btn.active {
    font-size: 18px;
    color: white;
    border-bottom: 1px solid #009999;
}

/* Floating Vertical Toolbar (Hidden by Default) */
.side-toolbar {
    margin: 0;
    position: absolute;
    left: 10px; /* Align to the left */
    top: 50%;
    transform: translateY(-50%);
    /*background: rgba(0, 0, 0, 0.8);*/
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0px; /* Reduce spacing */
    z-index: 10;
    align-items: flex-start; /* Align everything to the left */
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.side-toolbar:hover {
    left: 15px;
    transition: 0.3s ease-in-out;
    gap :2px;
}

/* Toolbar buttons */
.tool-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    top: -1px;
}

/* Tool Icons */
.tool-btn img {
    width: 16px;
    height: 16px;
    filter: invert(1); /* Make icons white */
    margin-right: 15px; /* Space between icon and text */
}

/* Tool Name (Hidden by Default) */
.tool-name {
    font-size: 13px;
    margin: 0 auto;
    width: 90px;
    color: rgb(230, 230, 230);
    background: rgba(28, 28, 28, 0.9);
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 5px;
    text-align: left;
}

/* Show all tool names when hovering over sidebar */
.side-toolbar:hover .tool-name {
    opacity: 1;
}

.side-toolbar:not(:hover) .tool-name {
    transition:0.5s 0.8s ;
}

.tool-name:hover {
    color: #009999;
}
.snap-indicator {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(0, 255, 0, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    display: none;
}



