@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    overscroll-behavior-y: contain;
}

#app {
    position: relative;
    overflow-x: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f4f5; /* bg-zinc-100 */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    /* El z-index base será manejado por JS, pero dejamos uno bajo por defecto */
    z-index: 1; 
}

/* Aseguramos que la pantalla principal siempre esté visible al inicio */
#main-screen {
    transform: translateX(0);
    z-index: 5;
}

.screen.active {
    transform: translateX(0);
    /* El z-index ahora es manejado dinámicamente por JavaScript */
}

.modal {
    transition: opacity 0.3s ease;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Nuevos Estilos para la Etiqueta --- */
#label-to-print {
    width: 600px;
    height: 300px;
    background-color: white;
    border: 2px solid #ffffff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

#qr-code-container {
    width: 260px; /* Ancho para el QR */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#qr-code-container img {
    width: 240px !important;
    height: 240px !important;
}

.label-info {
    flex-grow: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
}

.label-info #label-box-id {
    font-weight: bold;
    font-size: 24px;
}
.label-info #label-box-name {
    font-weight: bold;
    font-size: 24px;
    word-break: break-word;
}
.label-section {
    margin-top: 10px;
}
.label-title {
    font-size: 16px;
    text-decoration: underline;
    font-weight: bold;
}
.label-section p:last-child {
    font-size: 20px;
    word-break: break-word;
}
.label-footer {
    text-align: left;
    font-weight: bold;
    font-size: 22px;
}

