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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card, .barcode-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #afafaf;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.form-section {
    text-align: center;
}

.instruction {
    color: #000000;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.input-container {
    margin-bottom: 30px;
}

#codeInput {
    width: 100%;
    max-width: 200px;
    padding: 18px;
    font-size: 32px;
    text-align: center;
    border: 3px solid #afafaf;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    outline: none;
    color: #000000;
}

#codeInput:focus {
    border-color: #e2211c;
    box-shadow: 0 0 0 4px rgba(226, 33, 28, 0.1);
}



/* Barcode Page Styles */
.barcode-section {
    text-align: center;
}

.barcode-label {
    color: #000000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.barcode-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.barcode-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #afafaf;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.barcode-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.download-btn {
    background: #e2211c;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.download-btn:hover {
    background: #c41e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 33, 28, 0.3);
}

.instructions {
    margin-top: 40px;
    text-align: left;
}

.instructions h3 {
    font-size: 20px;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.instruction-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #afafaf;
    border-radius: 12px;
    align-items: flex-start;
}

.instruction-item .icon {
    font-size: 28px;
    flex-shrink: 0;
}

.instruction-item .text {
    flex: 1;
}

.instruction-item strong {
    display: block;
    color: #000000;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.instruction-item p {
    color: #000000;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .card, .barcode-card {
        padding: 30px 20px;
    }
    
    .logo-section h1 {
        font-size: 28px;
    }
    
    #codeInput {
        font-size: 28px;
        padding: 15px;
    }
    
    .barcode-value {
        font-size: 20px;
    }
    
    .barcode-wrapper {
        padding: 20px;
    }
}
