/* --- GENERAL RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f5f7fa;
    color: #1e293b;
    line-height: 1.6;
    font-size: 16px;
}

/* --- CARD CONTAINER --- */
.card-body {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 1100px;
    width: 95%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-body:hover {
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
    transform: translateY(-2px);
}

/* --- FORM STYLING --- */
form.card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form.card label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #1e293b;
}

form.card select,
form.card input,
form.card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

form.card select:focus,
form.card input:focus,
form.card textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* --- GRID FOR INPUTS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.grid small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

/* --- CHECKBOX --- */
label.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

label.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

/* --- BUTTONS --- */
button.btn-primary {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

button.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* --- RESULTS SECTION --- */
.results {
    margin-top: 40px;
}

.results .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.results .actions button {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.results .actions button:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* --- BARCODE CARDS --- */
.grid-output {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.barcode-card {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.barcode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.1);
}

.barcode-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.barcode-card small {
    display: block;
    word-break: break-all;
    color: #475569;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .results .actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 20px;
    }

    button.btn-primary,
    .results .actions button {
        width: 100%;
    }
}

  .about-section {
      margin-top: 40px;
      background: #f1f5f9;
      padding: 25px;
      border-radius: 8px;
      font-size: 15px;
      line-height: 1.6;
    }

    .about-section h3 {
      font-size: 20px;
      margin-bottom: 10px;
    }

    .about-section ul {
      padding-left: 20px;
    }

