body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f4f4f9;
}

#cy {
    width: 100vw;
    height: 100vh;
    display: block;
    background-color: #ffffff;
}

#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.bottom-row {
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.bottom-row:nth-child(2) {
    justify-content: space-between;
}

.bottom-row:nth-child(3) {
    justify-content: flex-start;
}

#controls label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#layout-select, #easing-select, #node-color-select, #node-size-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 14px;
    margin-right: 10px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#layout-select:hover {
    border-color: #bbb;
}

#layout-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

#download-svg {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#download-svg:hover {
    background-color: #0056b3;
}

#download-svg:active {
    transform: scale(0.98);
}

#file-upload {
    font-size: 14px;
    color: #333;
}

.sample-dataset-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#sample-dataset-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#sample-dataset-select:hover {
    border-color: #bbb;
}

#sample-dataset-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
