/* Batch QR Code Generator Custom Styles */
.qrcode-batch-page {
    --batch-primary: #2563eb;
    --batch-primary-hover: #1d4ed8;
    --batch-bg-light: #f8fafc;
}

/* Hero Badge & Banner */
.batch-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Compact Square Color Pickers */
.batch-color-picker-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-color-swatch-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.batch-color-swatch-wrapper:hover {
    transform: scale(1.05);
    border-color: #2563eb;
}

.batch-color-swatch-wrapper input[type="color"] {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    border: none;
    cursor: pointer;
    padding: 0;
    background: none;
}

.batch-color-hex {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 10px;
    text-transform: uppercase;
    min-width: 78px;
    text-align: center;
}

/* File Dropzone */
.batch-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 14px;
}

.batch-upload-zone:hover, .batch-upload-zone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.batch-upload-zone i {
    font-size: 24px;
    color: #2563eb;
    margin-bottom: 6px;
    display: block;
}

.batch-upload-zone p {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.batch-upload-zone p strong {
    color: #2563eb;
}

/* Preset Sample Chips */
.batch-sample-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.batch-sample-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.batch-sample-chip:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Counter & Download Action Bar */
.batch-download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    margin-top: 20px;
    margin-bottom: 24px;
}

.batch-download-bar__info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-download-bar__info p {
    margin: 4px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.batch-download-bar .btn-download-zip {
    background: #ffffff;
    color: #1e40af;
    font-weight: 700;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    text-decoration: none;
}

.batch-download-bar .btn-download-zip:hover {
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.batch-download-bar .btn-download-zip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Grid Preview */
.batch-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.batch-preview-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-preview-head span {
    font-size: 13px;
    color: #64748b;
}

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

.batch-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.batch-item-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.batch-item-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.batch-item-qr {
    width: 140px;
    height: 140px;
    margin: 12px 0 10px 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.batch-item-qr img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.batch-item-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 2px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-item-content {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 12px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-item-actions {
    margin-top: auto;
    width: 100%;
}

.btn-single-download {
    width: 100%;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-single-download:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Empty Grid Placeholder */
.batch-empty-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    color: #94a3b8;
}

.batch-empty-placeholder i {
    font-size: 36px;
    margin-bottom: 10px;
    color: #cbd5e1;
    display: block;
}

/* Section & Scenario Cards */
.batch-scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .batch-scenario-grid {
        grid-template-columns: 1fr;
    }
}

.batch-scenario-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s ease;
}

.batch-scenario-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.batch-scenario-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.batch-scenario-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.batch-scenario-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.batch-scenario-card__example {
    background: #f8fafc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: monospace;
    color: #334155;
    border-left: 3px solid #2563eb;
}

/* FAQ Accordion */
.batch-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.batch-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.batch-faq-item.active {
    border-color: #2563eb;
}

.batch-faq-question {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.batch-faq-question:hover {
    color: #2563eb;
}

.batch-faq-answer {
    padding: 0 18px 14px 18px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    display: none;
    border-top: 1px dashed #f1f5f9;
    margin-top: 4px;
    padding-top: 12px;
}

.batch-faq-item.active .batch-faq-answer {
    display: block;
}

.batch-faq-icon {
    transition: transform 0.2s ease;
}

.batch-faq-item.active .batch-faq-icon {
    transform: rotate(180deg);
}

/* Related Tools Grid */
.batch-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
}

@media (max-width: 992px) {
    .batch-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.batch-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.batch-related-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    text-decoration: none;
}

.batch-related-card i {
    font-size: 22px;
    color: #2563eb;
    margin-bottom: 8px;
}

.batch-related-card strong {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

.batch-related-card span {
    font-size: 11px;
    color: #64748b;
}
