body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f8f8f8;
}

#toolbar {
    padding: 10px;
    background: #2c3e50;
    color: #fff;
    display: flex;
    align-items: center;
}

#toolbar button {
    margin-right: 10px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: #fff;
    transition: background 0.2s;
}

#toolbar button:hover {
    background-color: #2980b9;
}

#canvas {
    flex: 1;
    position: relative;
    background: #ecf0f1;
    overflow: auto;
    padding: 10px;
}

.block {
    position: absolute;
    border: 2px solid #34495e;
    background-color: #bdc3c7;
    padding: 5px;
    cursor: move;
    resize: both;
    overflow: hidden;
    border-radius: 6px;
    min-width: 80px;
    min-height: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.block input.nameInput {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.block label {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.block select {
    font-size: 12px;
    border-radius: 4px;
    padding: 2px;
}

#cssOutput {
    height: 200px;
    width: 100%;
    padding: 10px;
    font-family: monospace;
    box-sizing: border-box;
    border: none;
    border-top: 2px solid #34495e;
    resize: none;
    background: #ecf0f1;
}

#copyMsg {
    font-size: 14px;
    transition: opacity 0.3s;
}
