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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.printer-shell {
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid #ccc;
}

.printer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(145deg, #d8d8d8, #c8c8c8);
    border-radius: 5px;
    border: 1px solid #bbb;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    user-select: none;
}

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

.led {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    color: #666;
}

.led::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    margin-right: 8px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.led.active::before {
    background: radial-gradient(circle, #00ff00, #00aa00);
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(0, 255, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#printer-canvas {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 3px solid #999;
    border-radius: 5px;
    background: #f5f5dc;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(145deg, #d8d8d8, #c8c8c8);
    border-radius: 5px;
    border: 1px solid #bbb;
    flex-wrap: wrap;
    gap: 15px;
}

.control-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.power-btn {
    background: linear-gradient(145deg, #ff4444, #cc3333);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    font-family: inherit;
}

.power-btn:hover {
    background: linear-gradient(145deg, #ff6666, #ee4444);
    transform: translateY(-2px);
}

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

.control-btn {
    background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
    border: 1px solid #999;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.control-btn:hover {
    background: linear-gradient(145deg, #f0f0f0, #d8d8d8);
    transform: translateY(-1px);
}

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

.toggle-switch {
    position: relative;
}

.toggle-switch label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: relative;
    width: 60px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    transition: 0.3s;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.slider::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: white;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: #4CAF50;
    color: white;
}

input:checked + .slider::before {
    transform: translateX(35px);
}

select {
    padding: 5px 8px;
    border: 1px solid #999;
    border-radius: 3px;
    background: white;
    font-family: inherit;
    font-size: 12px;
}

label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

.input-panel {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.input-section {
    flex: 2;
    min-width: 300px;
}

.status-panel {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #444;
}

#text-input {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 2px solid #999;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #fff;
    resize: vertical;
    margin-bottom: 10px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    background: linear-gradient(145deg, #5CBF60, #4CAF50);
    transform: translateY(-1px);
}

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

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.status-item span:first-child {
    color: #88ff88;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .printer-shell {
        padding: 15px;
    }
    
    .printer-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-section {
        justify-content: center;
    }
    
    .input-panel {
        flex-direction: column;
    }
    
    .button-group {
        justify-content: center;
    }
    
    #printer-canvas {
        width: 100%;
        height: auto;
    }
}

/* Additional retro styling */
.printer-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 10px 10px 0 0;
}

/* Vintage computer aesthetic */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

#printer-status {
    animation: blink 1s infinite;
}