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

body {
    background-color: #FDFBF7; /* Ivory background */
    color: #0A1128; /* Dark Navy text */
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: #FFFFFF;
    border: 2px solid #D4AF37; /* Vintage Gold border */
    box-shadow: 6px 6px 0px #0A1128;
    padding: 35px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

input[type="file"] {
    padding: 8px;
    border: 1px dashed #0A1128;
    background-color: #FDFBF7;
    font-family: inherit;
    cursor: pointer;
}

button {
    background-color: #0A1128;
    color: #FDFBF7;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #D4AF37;
    color: #0A1128;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

#loading {
    margin-top: 25px;
    font-weight: bold;
    color: #0A1128;
}

.spinner {
    border: 4px solid #FDFBF7;
    border-top: 4px solid #0A1128;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

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

#result {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #0A1128;
}

#result h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

#qrImage {
    width: 190px;
    height: 190px;
    border: 2px solid #0A1128;
    margin-bottom: 15px;
    background-color: #fff;
}

a {
    color: #8B0000; /* Deep Red */
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}