* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: #fff;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

canvas {
    display: block;
    background: #0a0a0a;
    cursor: crosshair;
}

/* Menu Bar */
#menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 2px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.menu-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu-btn {
    padding: 8px 15px;
    background: #2a2a2a;
    border: 1px solid #00ff00;
    color: #00ff00;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
    transition: all 0.2s;
}

.menu-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.menu-btn.active {
    background: #00ff00;
    color: #000;
}

.info-text {
    padding: 5px 10px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

/* Sidebars */
.sidebar {
    position: fixed;
    top: 50px;
    width: 200px;
    height: calc(100% - 100px);
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid #00ff00;
    overflow-y: auto;
    padding: 15px;
    z-index: 90;
}

#sidebar-left {
    left: 0;
    border-right: 2px solid #00ff00;
}

#sidebar-right {
    right: 0;
    border-left: 2px solid #00ff00;
}

.sidebar h3 {
    color: #00ff00;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
}

.sidebar h3:first-child {
    margin-top: 0;
}

/* Buttons in Sidebar */
.tool-section,
.shapes-section,
.presets-section,
.properties-section,
.constraints-section,
.platforms-section,
.debug-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

tool-btn,
.shape-btn,
.preset-btn,
.constraint-btn,
.platform-btn {
    padding: 8px 10px;
    background: #1a1a1a;
    border: 1px solid #00ff00;
    color: #00ff00;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
    text-align: left;
}

tool-btn:hover,
.shape-btn:hover,
.preset-btn:hover,
.constraint-btn:hover,
.platform-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

tool-btn.active,
.shape-btn.active,
.preset-btn.active,
.constraint-btn.active,
.platform-btn.active {
    background: #00ff00;
    color: #000;
    font-weight: bold;
}

/* Properties Section */
.properties-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 8px;
}

.properties-section input[type="range"] {
    flex: 1;
    height: 4px;
    cursor: pointer;
}

.properties-section input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.properties-section span {
    min-width: 40px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 10px;
}

/* Info Panel */
#info-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(30, 30, 30, 0.95);
    border-top: 2px solid #00ff00;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
}

#status-text {
    font-size: 12px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
    opacity: 0.8;
}

/* Canvas Adjustments */
canvas {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    width: calc(100% - 400px);
    height: calc(100% - 100px);
    margin-left: 200px;
    margin-right: 200px;
}