/* style.css - The Office Edition */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #453f3f; /* Un gris de oficina deprimente */
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
}

.office-copier {
    width: 380px;
    background: #e0e0e0; /* Color beige de equipo de oficina viejo */
    border: 1px solid #a0a0a0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.top-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #c7c7c7;
    padding: 5px 10px;
    margin: -15px -15px 15px -15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #a0a0a0;
}

.brand {
    font-weight: bold;
    color: #003366; /* Azul Dunder Mifflin */
}

.status-light {
    width: 15px;
    height: 15px;
    background-color: #2b9e49; /* Verde "listo" */
    border-radius: 50%;
    border: 1px solid #555;
    animation: blink-ready 3s infinite;
}

@keyframes blink-ready {
    50% { background-color: #2b9e49; }
    52% { background-color: #f5a623; } /* Parpadeo naranja */
    54% { background-color: #2b9e49; }
}

.office-copier img {
    width: 40%;
    margin-bottom: 15px;
}

.output-tray {
    background: #333;
    padding: 10px;
    border-radius: 4px;
}

.memo-output {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Special Elite', 'Courier New', monospace; /* Fuente de máquina de escribir */
    line-height: 1.6;
    text-align: left;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.memo-output strong {
    margin-top: 15px;
    align-self: flex-end;
    font-family: 'Roboto', Arial, sans-serif;
}

button {
    background-color: #0050dd; /* Botón verde de "Inicio" */
    color: white;
    border: 2px solid #4d4c4c;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}
button:hover { background-color: #0050dd; }
button:disabled { background-color: #4f4f5c; cursor: not-allowed; }

/* --- ANIMACIONES AL HACER CLIC --- */
@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    10%, 50%, 90% { transform: translate(-2px, 2px) rotate(-1deg); }
    30%, 70% { transform: translate(2px, -2px) rotate(1deg); }
}

/* Clase que activa la animación */
.office-copier.is-printing {
    animation: shake 0.8s ease-in-out;
}