/* Voronoi Specific Styles */
.voronoi-main {
    padding: 0;
    flex-grow: 1;
}

.voronoi-container {
    display: flex;
    height: calc(100vh - 140px);
    position: relative;
}

.voronoi-sidebar {
    width: 280px;
    background: rgba(35, 8, 61, 0.95);
    border-right: 2px solid rgba(125, 29, 211, 0.5);
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(125, 29, 211, 0.3);
    transition: transform 0.3s ease;
    z-index: 100;
}

.voronoi-main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.voronoi-title {
    color: #FFE500;
    margin-bottom: 30px;
    font-size: 1.6rem;
    text-align: center;
    border-bottom: 2px solid #7D1DD3;
    padding-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 229, 0, 0.5);
}

.voronoi-controls {
    margin-bottom: 30px;
}

.voronoi-control-group {
    margin-bottom: 20px;
}

.voronoi-control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.voronoi-select,
.voronoi-hex-input {
    width: 100%;
    padding: 8px;
    border: 2px solid rgba(125, 29, 211, 0.5);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(10, 2, 17, 0.9);
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.voronoi-select:focus,
.voronoi-hex-input:focus {
    outline: none;
    border-color: #7D1DD3;
    box-shadow: 0 0 10px rgba(125, 29, 211, 0.5);
}

.voronoi-hex-input {
    width: 100%;
    max-width: 120px;
    font-family: monospace;
}

.voronoi-btn {
    width: 100%;
    padding: 12px;
    background: #7D1DD3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.voronoi-btn:hover {
    background: #6a18b8;
    box-shadow: 0 5px 15px rgba(125, 29, 211, 0.4);
    transform: translateY(-2px);
}

.voronoi-btn:active {
    background: #5a1399;
    transform: translateY(0);
}

.voronoi-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(10, 2, 17, 0.5);
    overflow: hidden;
    touch-action: none;
}

#backgroundImage {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    cursor: pointer;
    transform-origin: 0 0;
    pointer-events: none;
}

#voronoiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: crosshair;
    transform-origin: 0 0;
}

.voronoi-info-panel {
    background: rgba(21, 5, 36, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(125, 29, 211, 0.3);
}

.voronoi-site-count {
    font-size: 16px;
    font-weight: bold;
    color: #FFE500;
    margin-bottom: 5px;
}

.voronoi-zoom-info {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.voronoi-instructions {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.6;
}

/* Mobile hamburger menu for Voronoi sidebar */
.voronoi-menu-toggle {
    display: none;
    position: fixed;
    top: 140px;
    left: 20px;
    z-index: 200;
    background: #7D1DD3;
    color: white;
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(125, 29, 211, 0.5);
    font-size: 24px;
    transition: all 0.3s ease;
}

.voronoi-menu-toggle:hover {
    background: #6a18b8;
    box-shadow: 0 4px 12px rgba(125, 29, 211, 0.6);
}

.voronoi-menu-toggle:active {
    background: #5a1399;
}

.voronoi-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

/* Mobile styles */
@media (max-width: 768px) {
    .voronoi-menu-toggle {
        display: block;
    }

    .voronoi-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .voronoi-sidebar.open {
        transform: translateX(0);
    }

    .voronoi-overlay.active {
        display: block;
    }

    .voronoi-main-content {
        width: 100%;
    }

    .voronoi-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .voronoi-instructions {
        font-size: 12px;
    }

    .voronoi-btn {
        padding: 10px;
        font-size: 13px;
    }

    .voronoi-container {
        height: calc(100vh - 120px);
    }
}

@media (max-width: 480px) {
    .voronoi-sidebar {
        width: 85vw;
        max-width: 300px;
    }

    .voronoi-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 20px;
        top: 120px;
    }
}
