body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    background-color: #2f3640;
    color: #f5f6fa;
    user-select: none;
    overflow: hidden;
}
#sidebar {
    width: 280px;
    background-color: #20242c;
    border-right: 1px solid #3498db;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    height: 100vh;
}
h3 {
    font-size: 13px;
    text-transform: uppercase;
    color: #3498db;
    margin: 6px 0 2px 0;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 4px;
    letter-spacing: 0.5px;
}
.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    background: #2c313c;
    padding: 10px;
    border-radius: 6px;
}
label { font-weight: bold; color: #dcdde1; margin-bottom: 2px; }
select, input {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #485460;
    background-color: #1e222b;
    color: #ffffff;
    font-size: 11px;
    outline: none;
}
button {
    padding: 9px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
    text-align: left;
    transition: background 0.1s ease;
}
button:hover { background-color: #2980b9; }
button.secondary { background-color: #8e44ad; }
button.secondary:hover { background-color: #732d91; }
button.danger { background-color: #e74c3c; text-align: center; }
button.danger:hover { background-color: #c0392b; }

#workspace {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e222b;
    height: 100vh;
    overflow: auto;
}
.canvas-container {
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* Custom Context Menu Styling specs */
.context-menu {
    position: absolute;
    display: none;
    background-color: #20242c;
    border: 1px solid #485460;
    border-radius: 4px;
    padding: 4px 0;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    min-width: 150px;
}
.menu-item {
    padding: 8px 14px;
    font-size: 11px;
    color: #f5f6fa;
    cursor: pointer;
}
.menu-item:hover { background-color: #3498db; }
.menu-divider { height: 1px; background-color: #485460; margin: 4px 0; }

@media print {
    body { background: white; color: black; }
    #sidebar, .context-menu { display: none !important; }
    #workspace { background: white; padding: 0; margin: 0; }
    .canvas-container { box-shadow: none !important; }
}