/* SCAN PAGE MODERN UI */

.scan-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* SCANNER CONTAINER */
.scan-container {
    width: 100%;
    margin: 30px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qr-reader {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-height: 320px;
    /* Placeholder height */
    position: relative;
}

/* Simulated Viewfinder Corners */
#qr-reader::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    pointer-events: none;
    z-index: 10;
}

/* TEXT CONTENT */
.scan-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.scan-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}

#scan-status {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    background: var(--surface);
    border-radius: 20px;
    display: inline-block;
}

/* CONTROLS */
#start-scan-btn {
    margin-top: 24px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-btn-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.back-btn {
    background: transparent;
    border: none;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--primary-light);
}