body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
    color: #555;
}

.generator-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.settings-panel {
    width: 40%;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.settings-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group select, .form-group textarea, .form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

#generate-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s;
}

#generate-btn:hover {
    background-color: #218838;
}

.output-panel {
    width: 60%;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.output-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

#barcode-output {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
}

.barcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.output-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.output-actions button {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#print-btn {
    background-color: #17a2b8;
    color: white;
}

#print-btn:hover {
    background-color: #138496;
}

#download-btn {
    background-color: #007bff;
    color: white;
}

#download-btn:hover {
    background-color: #0056b3;
}
