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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.washing-machine-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.machine-body {
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.machine-top {
    margin-bottom: 30px;
}

.detergent-drawer {
    background: #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detergent-drawer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detergent-drawer.open {
    transform: translateY(5px);
}

.detergent-drawer.open .drawer-content {
    display: flex;
}

.drawer-handle {
    width: 40px;
    height: 6px;
    background: #999;
    border-radius: 3px;
    margin: 0 auto 10px;
}

.drawer-content {
    display: none;
    gap: 20px;
}

.detergent-slot, .softener-slot {
    flex: 1;
}

.detergent-slot label, .softener-slot label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #666;
}

.fill-indicator {
    height: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.fill-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    transition: width 0.3s ease;
}

.machine-front {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.door {
    position: relative;
    width: 300px;
    height: 300px;
}

.door-glass {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(0, 0, 0, 0.1);
}

.drum {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #666, #333);
    overflow: hidden;
}

.clothes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
}

.clothing-item {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, transparent, rgba(135, 206, 235, 0.6));
    transition: height 2s ease;
}

.soap-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

.door-reflection {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 50%;
    opacity: 0.5;
}

.door-handle {
    position: absolute;
    top: 50%;
    right: -15px;
    width: 30px;
    height: 60px;
    background: #666;
    border-radius: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.door-handle:hover {
    background: #888;
    transform: translateY(-50%) scale(1.05);
}

.control-panel {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.display-screen {
    background: #000;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.time-display {
    font-size: 2rem;
    color: #00ff00;
    margin-bottom: 5px;
}

.cycle-info {
    font-size: 0.9rem;
    color: #ccc;
}

.controls {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

.control-group select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: none;
    background: #444;
    color: white;
}

.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.primary {
    background: #4CAF50;
    color: white;
}

.btn.secondary {
    background: #666;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-lights {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
    transition: all 0.3s ease;
}

.light.active {
    box-shadow: 0 0 10px currentColor;
}

#powerLight.active { background: #ff4444; color: #ff4444; }
#lockLight.active { background: #ffff44; color: #ffff44; }
#cycleLight.active { background: #44ff44; color: #44ff44; }

.laundry-basket {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.laundry-basket h3 {
    margin-bottom: 15px;
    color: #333;
}

.basket-items {
    min-height: 200px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.basket-item {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.basket-item:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .washing-machine-container {
        grid-template-columns: 1fr;
    }
    
    .machine-front {
        grid-template-columns: 1fr;
    }
    
    .door {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
}

