.isbn-barcode-container {
    max-width: 600px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.isbn-barcode-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.isbn-barcode-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.isbn-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.isbn-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.price-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #2196F3;
}

.genre-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    text-transform: uppercase;
}

.genre-input:focus {
    outline: none;
    border-color: #9C27B0;
}

.help-text {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 13px;
}

.generate-btn {
    width: 100%;
    padding: 14px;
    background: #780096;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.generate-btn:hover {
    background: #5a0070;
}

.generate-btn:active {
    transform: scale(0.98);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid #c62828;
}

.barcode-result {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.barcode-result h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.barcode-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: inline-block;
    border: 2px solid #e0e0e0;
}

.genre-display {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 15px;
    padding: 5px;
    display: none;
    background: white;
    letter-spacing: 1px;
}

.barcode-header {
    width: 100%;
    margin-bottom: 8px;
    background: white;
}

.price-header {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    text-align: left;
    padding: 5px 0;
    display: none;
}

.isbn-text-display {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-align: center;
    padding: 5px 0;
    display: none;
    background: white;
}

.barcode-container {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.barcode-wrapper svg {
    display: block;
}

.price-barcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 5px;
}

.price-code-text {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 0px;
    text-align: center;
}

.price-text {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
    padding-left: 10px;
}

.price-display {
    margin-top: 15px;
    padding: 10px;
    font-size: 18px;
    color: #333;
    background: #f0f8ff;
    border-radius: 6px;
    display: none;
}

.copyright-display {
    font-size: 11px;
    color: #000;
    text-align: center;
    margin-top: 15px;
    padding: 8px 5px;
    background: white;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.barcode-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn,
.reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    font-size: 18px;
}

.png-btn {
    background: #2196F3;
    color: white;
}

.png-btn:hover {
    background: #1976D2;
}

.pdf-btn {
    background: #FF5722;
    color: white;
}

.pdf-btn:hover {
    background: #E64A19;
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reset-btn {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.reset-btn:hover {
    background: #e0e0e0;
}

/* Responsive design */
@media (max-width: 600px) {
    .isbn-barcode-container {
        margin: 15px;
    }
    
    .isbn-barcode-form,
    .barcode-result {
        padding: 20px;
    }
    
    .barcode-wrapper {
        padding: 20px;
    }
    
    .barcode-container {
        flex-direction: column;
        align-items: center;
    }
    
    .price-barcode-container {
        margin-left: 0;
        margin-top: 15px;
        align-items: center;
    }
    
    .price-text {
        padding-left: 0;
    }
    
    .barcode-actions {
        flex-direction: column;
    }
    
    .download-btn,
    .reset-btn {
        width: 100%;
        justify-content: center;
    }
}
