* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1a1a1a;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
}

/* Full screen sections */
.full-screen-section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Welcome Page */
.welcome-content {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.main-title {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 48px;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Scanner Page */
.scanner-content {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
}

.scanner-content h2 {
    color: #1a1a1a;
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* Status Pages */
.status-page {
    background: #ffffff;
}

.status-page.status-success {
    background: #86efac !important;
}

.status-page.status-warning {
    background: #fef08a;
}

.status-page.status-error {
    background: #fca5a5;
}

.status-content {
    text-align: center;
    color: #1a1a1a;
}

.status-page.status-success .status-content,
.status-page.status-warning .status-content,
.status-page.status-error .status-content {
    color: #ffffff;
}

.status-icon-large {
    font-size: 6rem;
    margin-bottom: 24px;
    animation: scaleIn 0.4s ease;
}

.status-content h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    animation: fadeIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

label {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.95rem;
    text-align: left;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

input[type="text"]:focus {
    outline: none;
    border-color: #dc2626;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.05);
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.btn-primary {
    background: #dc2626;
    color: white;
}

.btn-primary:hover {
    background: #b91c1c;
}

.btn-primary:active {
    background: #991b1b;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f3f4f6;
    color: #1a1a1a;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-link {
    background: transparent;
    color: #dc2626;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    border: 1px solid #e5e5e5;
}

.btn-link:hover {
    background: #fef2f2;
    border-color: #dc2626;
}


#scanner-container {
    margin: 24px 0;
}

#reader {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .full-screen-section {
        padding: 20px;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .scanner-content h2 {
        font-size: 1.25rem;
    }
    
    .status-icon-large {
        font-size: 5rem;
    }
    
    .status-content h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 14px 28px;
    }
}

@media (max-width: 400px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .status-icon-large {
        font-size: 4rem;
        margin-bottom: 16px;
    }
    
    .status-content h1 {
        font-size: 1.5rem;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Touch optimization for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }
}

