/* Bulk Upload Styles */

.business-mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 10px;
}

.mode-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-btn:hover {
    background: #e5e7eb;
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mode-btn i {
    font-size: 1.1em;
}

.business-form-mode {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-upload-info {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.bulk-upload-info i {
    color: #3b82f6;
    font-size: 1.3em;
    margin-top: 2px;
}

.bulk-upload-info p {
    margin: 0;
    color: #1e40af;
    line-height: 1.6;
}

.bulk-upload-info strong {
    color: #1e3a8a;
    font-weight: 600;
}

.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-display {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-display:hover {
    border-color: #667eea;
    background: #f1f5f9;
}

.file-upload-display.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}

.file-upload-display.drag-over {
    border-color: #667eea;
    background: #eef2ff;
    transform: scale(1.02);
}

.file-upload-display i {
    font-size: 3em;
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
}

.file-upload-display.has-file i {
    color: #10b981;
}

.file-text {
    display: block;
    color: #64748b;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.file-name {
    display: none;
    color: #10b981;
    font-weight: 600;
    font-size: 1em;
}

.file-upload-display.has-file .file-text {
    display: none;
}

.file-upload-display.has-file .file-name {
    display: block;
}

.template-download {
    margin: 20px 0;
    text-align: center;
}

.btn-download-template {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s;
}

.btn-download-template:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-download-template i {
    font-size: 1.1em;
}

.bulk-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.bulk-preview h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-preview h4 i {
    color: #667eea;
}

.bulk-preview h4 span {
    color: #667eea;
    font-weight: 700;
}

.preview-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    font-size: 0.9em;
}

.preview-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.preview-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.preview-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.preview-table tbody tr:hover {
    background: #f9fafb;
}

.preview-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.preview-table tbody tr:nth-child(even):hover {
    background: #f1f3f5;
}

.btn-generate-bulk {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-generate-bulk:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-generate-bulk i {
    font-size: 1.2em;
}

.btn-generate-bulk span {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

/* Bulk QR Codes Display */
.bulk-qr-results {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bulk-qr-results h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bulk-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.bulk-qr-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.bulk-qr-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.bulk-qr-item canvas {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

.bulk-qr-item canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.bulk-qr-item .qr-code-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 10px;
}

.bulk-qr-item .qr-code-container canvas {
    max-width: 180px !important;
    max-height: 180px !important;
}

.bulk-qr-item h5 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 0.95em;
}

.bulk-qr-item p {
    margin: 0 0 10px 0;
    color: #6b7280;
    font-size: 0.85em;
}

.bulk-qr-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.bulk-qr-actions button {
    padding: 6px 12px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
}

.bulk-qr-actions button:hover {
    background: #5568d3;
}

.download-all-btn {
    padding: 12px 24px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.download-all-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Bulk QR Results Container */
.bulk-qr-results {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.bulk-qr-results h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    font-size: 1.3em;
    color: #1f2937;
}

.bulk-qr-results h3 span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-qr-results h3 i {
    color: #667eea;
}

@media (max-width: 768px) {
    .bulk-qr-results h3 {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .download-all-btn {
        width: 100%;
        justify-content: center;
    }
}
