:root {
    --bg-color: #00ff00;
    --card-bg: #f5f5f5;
    --text-color: #333;
    --border-color: #999;
}

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

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

header h1 {
    background: white;
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
}

.card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.display-section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.display-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.display-row label {
    font-weight: bold;
    width: 50px;
    text-align: right;
}

.display-row input {
    flex-grow: 1;
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    background: white;
}

.controls-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 150px;
}

.knob-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.knob {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 1px solid #333;
    position: relative;
    transition: transform 0.1s linear;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.knob-pointer {
    position: absolute;
    width: 2px;
    height: 12px;
    background: #000;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.knob-labels {
    position: absolute;
    bottom: -20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.control-group label {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

input[type="range"] {
    width: 120px;
    cursor: pointer;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .card {
        padding: 20px;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: center;
    }
    
    .display-row {
        max-width: 100%;
    }
}

.binary-input {
    width: 100px;
    padding: 5px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    border: 1px solid var(--border-color);
    background: #fff;
    margin-top: 5px;
}

.binary-input:focus {
    outline: 2px solid #666;
}
