* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a14;
    color: #e0e0ff;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

.sidebar {
    width: 400px;
    background-color: #151522;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.title-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a3a;
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #ffffff;
}

.description {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}

.control-group {
    background-color: #1e1e2e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.control-group h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 18px;
}

.source-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.source-control {
    background-color: rgba(42, 42, 58, 0.6);
    border-radius: 6px;
    padding: 12px;
    border-left: 4px solid;
}

.source-control:nth-child(1) {
    border-left-color: rgb(220, 100, 100);
}

.source-control:nth-child(2) {
    border-left-color: rgb(100, 150, 220);
}

.source-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 10px;
}

.source-title {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
}

.setting {
    margin-bottom: 12px;
}

.setting label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.9;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #2a2a3a;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4a4a6a;
    cursor: pointer;
}

.value-display {
    min-width: 50px;
    text-align: left;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 8px;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    background-color: #2a2a3a;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #3a3a4a;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.info-box {
    background-color: #1e1e2e;
    border-radius: 8px;
    padding: 15px;
}

.info-box h3 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 16px;
}

.info-box p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

.info-box strong {
    color: #ffffff;
}

.simulation-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#canvas-container {
    height: 95vh;
    width: 74vw;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 2px #2a2a3a;
    background-color: #0f0f1a;
}