html {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    opacity: 1;
    transform: translateY(0);
    margin: 0%;
    padding: 10px;
    background-color: #fFF;
    font-family: Arial, sans-serif;
}





.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px;
}

.header-button {
    font-size: 20px;
    padding: 5px 20px 5px 20px;
    background-color: #FFF;
     border: 1px solid #333;
}






.workstation {
    display: flex;
    flex-direction: row;
    gap: 10px;

    width: 100%;
    height: 100%
}

.tool {
    padding: 5px;
    display: flex;
    flex-direction: column;
    width: 5%;
    border-radius: 10px;
    background-color: #FFF;
 border: 1px solid #333;
}

.add-page-tool {
     
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.add-page-tool span {
   border: 1px solid #333;
   padding: 5px;
     border-radius: 10px;
}

.add-page-tool h2 {
    text-align: center;
    white-space: nowrap;
    font-size: 10px;
    font-size: 10px;
}

.tool-icon {
    width: 20px;
    height: 20px;
}



.footer {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0px 20px;
   
}

.action {
    font-size: 30px;
    margin-left: auto;
   
}

.action a{
   border: 1px solid #333;
    color: #333;
    font-style: none;
    border-radius: 20px;
    padding: 5px 20px;
    font-size: 15px;
}















.canvas {
    width: 95%;
    background-color: #fff;
    position: relative;
    overflow: hidden;
  
    border: 1px solid #333;
}


.page-box {
    position: absolute;
    width: 150px;
    height: 100px;
    background-color: white;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
    outline: none;
    overflow: auto;
    user-select: none;
    min-width: 60px;
    min-height: 40px;
    z-index: 1;
}

.page-box.editing {
    cursor: text;
    user-select: text;
}

/* Context menu */
.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 4px 0;
    min-width: 170px;
    z-index: 10000;
    font-size: 14px;
    font-family: sans-serif;
}

.context-menu-item {
    padding: 8px 14px;
    cursor: pointer;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

.context-menu-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

.color-swatches {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* SVG overlays */
.connections-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.guides-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.guide-line {
    stroke: #ff3b81;
    stroke-width: 1;
    stroke-dasharray: 4 3;
}

.distance-label {
    font-size: 11px;
    font-family: sans-serif;
    fill: #ff3b81;
}

.distance-tick {
    stroke: #ff3b81;
    stroke-width: 1;
}

.connection-line {
    stroke: #333;
    stroke-width: 2;
    fill: none;
}

.canvas.connecting {
    cursor: crosshair;
}