/* Barcode Generator Specific Styles */

.barcode-preview-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
    overflow: auto;
}

[data-theme="dark"] .barcode-preview-wrap {
    background: #f8fafc;
}

.barcode-preview-wrap svg {
    max-width: 100%;
    height: auto;
}

.audit-score-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--space-4);
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-600);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 800;
}

.score-label { font-size: 8px; text-transform: uppercase; }

.param-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.gallery-item {
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--surface);
    transition: all 0.2s;
    text-align: center;
}

.gallery-item:hover { border-color: var(--primary-400); transform: translateY(-2px); }
.gallery-item.active { border-color: var(--primary-600); background: var(--primary-50); color: var(--primary-700); }
.gallery-item i { font-size: 20px; margin-bottom: 4px; }
.gallery-item span { font-size: 10px; font-weight: 700; text-transform: uppercase; }

.color-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mode-selector {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.mode-btn {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.mode-btn.active {
    background: var(--surface);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.batch-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.batch-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    text-align: center;
}

.batch-item svg, .batch-item img {
    max-width: 100%;
    height: auto;
}

[data-theme="dark"] .batch-item {
    background: #f8fafc; /* Keep barcodes on light bg for scan */
}

.logo-preview {
    width: 40px;
    height: 40px;
    border: 1px dashed var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .download-buttons-grid {
        grid-template-columns: 1fr;
    }
    .param-grid {
        grid-template-columns: 1fr;
    }
}
