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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #29a2c0;
    color: white;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.logo {
    width: 180px;
    margin-bottom: 2rem;
}

/* Schermate */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.screen.active {
    display: flex;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    font-size: 0.95rem;
    color: white;
    line-height: 1.4;
}

/* Form */
#upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.file-name {
    font-size: 0.85rem;
    color: white;
    word-break: break-all;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: opacity 0.2s;
}

.btn:active {
    opacity: 0.8;
}

.btn-primary {
    background: #fff20c;
    color: #000;
    text-transform: uppercase;
}

.btn-primary:disabled {
    background: white;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: black;
    text-transform: uppercase;
}

/* Progress bar */
.progress-bar-container {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #1a73e8;
    border-radius: 4px;
    transition: width 0.2s;
}

#progress-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a73e8;
}

/* Spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* QR */
#qr-container {
    margin: 1rem 0;
}

#qr-container canvas,
#qr-container img {
    border-radius: 8px;
}
