* {
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}
h1 {
    text-align: center;
    color: #333;
}

/* Two-column layout */
.main-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.left-column {
    flex: 1;
    min-width: 300px;
}
.right-column {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .left-column,
    .right-column {
        width: 100%;
    }
}

.input-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.input-section h2 {
    margin-top: 0;
    color: #555;
    font-size: 1.1em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.input-group label {
    flex: 1;
    color: #666;
}
.input-group input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}
.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
}
.scores-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.score-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}
.score-label {
    width: 100px;
    font-weight: bold;
    color: #333;
}
.battery {
    display: flex;
    align-items: center;
    flex: 1;
}
.battery-body {
    width: 120px;
    height: 30px;
    border: 3px solid #333;
    border-radius: 5px;
    padding: 2px;
    position: relative;
    background: #fff;
}
.battery-tip {
    width: 6px;
    height: 14px;
    background: #333;
    border-radius: 0 3px 3px 0;
    margin-left: 2px;
}
.battery-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
}
.battery-fill.low { background: linear-gradient(90deg, #ff4444, #ff6666); }
.battery-fill.medium { background: linear-gradient(90deg, #ffaa00, #ffcc00); }
.battery-fill.high { background: linear-gradient(90deg, #44bb44, #66dd66); }
.battery-fill.full { background: linear-gradient(90deg, #22aa22, #44cc44); }
.score-text {
    margin-left: 15px;
    font-size: 14px;
    color: #666;
    min-width: 100px;
}

/* Washer lifting visualization */
.washer-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.washer-section h2 {
    margin-top: 0;
    color: #555;
    font-size: 1.1em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}
.washer-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lift-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.lift-scene {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px 0;
}

/* Score bar */
.score-bar {
    display: flex;
    gap: 8px;
    height: 200px;
    align-items: stretch;
}
.score-bar-track {
    width: 24px;
    height: 100%;
    background: #e0e0e0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 2px solid #ccc;
}
.score-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #22aa22, #44cc44, #ffcc00, #ff6666);
    border-radius: 0 0 10px 10px;
    transition: height 0.5s ease-out;
}
.score-bar-marker {
    position: absolute;
    left: -4px;
    right: -4px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    transition: bottom 0.5s ease-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.score-bar-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2px 0;
}
.score-bar-label {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}
.score-bar-label.top {
    color: #22aa22;
}
.score-bar-label.bottom {
    color: #ff6666;
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

/* Wasmachine */
.washer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 4px;
    transition: bottom 0.5s ease-out;
}
.washer-top {
    width: 60px;
    height: 8px;
    background: linear-gradient(180deg, #e0e0e0, #c0c0c0);
    border-radius: 3px 3px 0 0;
    margin: 0 auto;
}
.washer-body {
    width: 60px;
    height: 50px;
    background: linear-gradient(180deg, #f5f5f5, #e0e0e0);
    border: 2px solid #bbb;
    border-radius: 5px;
    position: relative;
}
.washer-door {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #444;
    border-radius: 50%;
    border: 3px solid #888;
}
.washer-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #87CEEB, #4a90d9);
    border-radius: 50%;
}
.washer-base {
    width: 64px;
    height: 6px;
    background: #999;
    border-radius: 0 0 3px 3px;
    margin: 0 auto;
}

/* Lifter person */
.lifter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 4px;
}
.lifter-head {
    width: 20px;
    height: 20px;
    background: linear-gradient(180deg, #ffcc99, #e6b380);
    border-radius: 50%;
    margin: 0 auto 2px;
    position: relative;
}
.lifter-head::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 2px;
    width: 16px;
    height: 10px;
    background: #4a3728;
    border-radius: 8px 8px 0 0;
}
.lifter-body {
    width: 24px;
    height: 30px;
    background: linear-gradient(180deg, #e74c3c, #c0392b);
    border-radius: 5px 5px 0 0;
    margin: 0 auto;
}
.lifter-arms {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 8px;
    transition: all 0.5s ease-out;
}
.lifter-arms::before,
.lifter-arms::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 8px;
    background: linear-gradient(180deg, #ffcc99, #e6b380);
    border-radius: 4px;
    top: 0;
}
.lifter-arms::before {
    left: 0;
    transform-origin: right center;
}
.lifter-arms::after {
    right: 0;
    transform-origin: left center;
}
.lifter-arms.lifting::before {
    transform: rotate(-60deg);
}
.lifter-arms.lifting::after {
    transform: rotate(60deg);
}
.lifter-legs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
}
.lifter-legs::before,
.lifter-legs::after {
    content: '';
    width: 8px;
    height: 25px;
    background: linear-gradient(180deg, #2980b9, #1a5276);
    border-radius: 0 0 3px 3px;
}

/* Status messages */
.washer-status {
    text-align: center;
    margin-top: 10px;
}
.washer-percent {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.washer-message {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}
    width: 150px;
}
