body {
    background: black;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* ---------- TOP BAR ---------- */
.topbar {
    padding: 15px;
    border-bottom: 1px solid white;
}

/* dropdown */
.dropbtn {
    background: black;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    font-size: 16px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: black;
    border: 1px solid white;
    padding: 10px;
}

.dropdown-content input {
    display: block;
    margin: 5px 0;
    background: black;
    color: white;
    border: 1px solid white;
    padding: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ---------- PANEL LAYOUT ---------- */
.panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 70px);
}

/* ---------- COLOR ---------- */
.center {
    text-align: center;
}

canvas {
    border: 1px solid white;
    touch-action: none;
}

.preview {
    width: 80px;
    height: 80px;
    border: 1px solid white;
    margin: 15px auto;
}

/* ---------- BRIGHTNESS ---------- */
.brightness input {
    width: 300px;
}

/* ---------- POWER TOGGLE ---------- */
.power {
    position: absolute;
    right: 40px;
    top: 120px;
    text-align: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { display:none; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    border: 1px solid white;
}

.slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 3px;
    top: 3px;
    background: white;
    transition: 0.2s;
}

input:checked + .slider:before {
    transform: translateX(26px);
}
