/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #2d2d2d;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #404040;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4aa, #00a085);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.logo-icon {
    font-size: 1.5rem;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Global Printer Configuration */
.global-printer-config {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.global-printer-config label {
    color: #cccccc;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.global-printer-config input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #ffffff;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    width: 80px;
}

.global-printer-config input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.global-printer-config input[type="number"] {
    width: 60px;
}

.client-info {
    color: #cccccc;
    font-size: 0.9rem;
}

.refresh-btn {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background-color: #404040;
    color: #ffffff;
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}


/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background-color: #1a1a1a;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}


/* Order Form */
.unified-search-form {
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #404040;
    max-width: 600px;
}

.search-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #888888;
    font-size: 0.85rem;
}

.search-hint i {
    color: #007aff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4aa;
}

.form-group small {
    color: #888888;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.client-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.client-selector select {
    flex: 1;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00d4aa, #00a085);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
    background-color: #404040;
    color: #ffffff;
    border: 1px solid #666666;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: #555555;
    border-color: #777777;
}

/* Processing Status */
.processing-status {
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #404040;
    margin-top: 1rem;
    text-align: center;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #cccccc;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #404040;
    border-top: 2px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #404040;
    margin-top: 1rem;
}

.results-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.results-content {
    color: #cccccc;
    line-height: 1.6;
}

.results-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.results-content {
    flex: 1;
}

.label-preview-card {
    flex: 1;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 500px;
}

.preview-title {
    color: #e0e0e0;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.preview-container {
    position: relative;
    height: 100%;
}

.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #b0b0b0;
}

.preview-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007aff;
}

.preview-loading p {
    margin: 0;
    font-size: 0.9rem;
}

.preview-content {
    height: 100%;
}

.preview-content iframe {
    border-radius: 4px;
    background-color: white;
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.preview-actions .btn-download,
.preview-actions .btn-print {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #ff6b6b;
    text-align: center;
}

.preview-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.preview-error p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

/* Order Status Styles */
.order-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.order-status.processed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Process Order in Linnworks Button */
.process-order-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    text-align: center;
}

.btn-process-linnworks {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-process-linnworks:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-process-linnworks:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.process-order-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: #b0b0b0;
    font-style: italic;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .results-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .label-preview-card {
        min-height: 300px;
    }
    
    .preview-content iframe {
        height: 300px;
    }
}

/* Order Details Section */
.order-details-section {
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #404040;
    margin-top: 1rem;
}

.order-details-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.order-details-content {
    color: #cccccc;
    line-height: 1.6;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.order-info-item {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #404040;
}

.order-info-item h4 {
    color: #00d4aa;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-info-item p {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.items-table th,
.items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #404040;
}

.items-table th {
    background-color: #1a1a1a;
    color: #00d4aa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.items-table td {
    color: #cccccc;
}

.items-table tr:hover {
    background-color: #333333;
}

.pdf-download-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pdf-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.pdf-download-btn i {
    font-size: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #2d2d2d;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    border: 1px solid #404040;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #404040;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background-color: #404040;
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #404040;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    
    
    .client-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* Label Status Cards */
.label-status-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.label-status-card.success {
    border-color: #00d4aa;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 160, 133, 0.05));
}

.label-status-card.warning {
    border-color: #ff9500;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 149, 0, 0.05));
}

.label-status-card.info {
    border-color: #007aff;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 122, 255, 0.05));
}

.label-status-card.error {
    border-color: #ff3b30;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.1), rgba(255, 59, 48, 0.05));
}

.label-status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.label-status-header i {
    font-size: 1.5rem;
}

.label-status-card.success .label-status-header i {
    color: #00d4aa;
}

.label-status-card.warning .label-status-header i {
    color: #ff9500;
}

.label-status-card.info .label-status-header i {
    color: #007aff;
}

.label-status-card.error .label-status-header i {
    color: #ff3b30;
}

.label-status-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.label-status-card p {
    color: #cccccc;
    margin: 0;
    line-height: 1.5;
}

.label-status-card ul {
    margin: 1rem 0 0 1.5rem;
    color: #cccccc;
}

.label-status-card li {
    margin-bottom: 0.5rem;
}

/* Error content styles */
.error-content {
    margin-top: 1rem;
}

.error-content p {
    margin-bottom: 1rem;
}

.package-info {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #ff3b30;
}

.package-info h4 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.package-info p {
    margin: 0.25rem 0;
    color: #cccccc;
    font-size: 0.9rem;
}

.error-details {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #ff9500;
}

.error-details h4 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.error-details ul {
    margin: 0.5rem 0 0 1rem;
    color: #cccccc;
}

.error-details li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Shipments Section */
.shipments-section {
    margin-top: 2rem;
}

.shipments-section h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.shipments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.shipment-card {
    background-color: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.shipment-card:hover {
    border-color: #00d4aa;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.1);
}

.shipment-card h6 {
    color: #00d4aa;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shipment-details p {
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.shipment-details strong {
    color: #ffffff;
}

.label-status {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #2d2d2d;
    border-radius: 6px;
    border: 1px solid #404040;
}

.status-success {
    color: #00d4aa;
    font-weight: 600;
}

.status-error {
    color: #ff3b30;
    font-weight: 600;
}

.label-actions {
    margin-top: 1rem;
}

.btn-download {
    background: linear-gradient(135deg, #007aff, #0056cc);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-download i {
    font-size: 1rem;
}


/* Cache Indicator */
.cache-indicator {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Print Button */
.btn-print {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* PDF Button */
.btn-pdf {
    background: linear-gradient(135deg, #ff3b30, #d70015);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-print:hover {
    background: linear-gradient(135deg, #0056b3, #004499);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #d70015, #b3000f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.btn-print:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.btn-pdf:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3);
}

.btn-print i {
    font-size: 0.8rem;
}

.btn-pdf i {
    font-size: 0.8rem;
}

/* Cancel Button */
.btn-cancel {
    background: linear-gradient(135deg, #ff3b30, #d70015);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #d70015, #b30012);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.btn-cancel:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3);
}

.btn-cancel i {
    font-size: 0.8rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #3a3a3a;
}

.modal-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-group label {
    display: block;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-body .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.modal-body select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.modal-body select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #3a3a3a;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-footer .btn-secondary {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #5a5a5a;
}

.modal-footer .btn-secondary:hover {
    background-color: #4a4a4a;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004499);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Multi-Seller Configuration Styles */
.large-modal {
    max-width: 800px;
    width: 90%;
}

.seller-configs-section {
    margin-top: 1.5rem;
    border-top: 1px solid #3a3a3a;
    padding-top: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h4 {
    color: #e0e0e0;
    margin: 0;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.seller-config {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.seller-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.seller-config-title {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
}

.remove-seller-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-seller-btn:hover {
    background: #c82333;
}

.seller-config-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.seller-config-fields .form-group {
    margin-bottom: 0;
}

.seller-config-fields .form-group.full-width {
    grid-column: 1 / -1;
}

.seller-config-fields textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: monospace;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.seller-config-fields textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.seller-config-fields input[readonly] {
    background-color: #2a2a2a;
    color: #888;
    cursor: not-allowed;
}

.seller-config-fields .hashed-token {
    background-color: #1a3a1a;
    color: #4a9a4a;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Responsive Design for Multi-Seller */
@media (max-width: 768px) {
    .seller-config-fields {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Barcode Search Section */
.barcode-search-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #333;
}

.barcode-search-section h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.barcode-search-section h3 i {
    color: #007aff;
}

.barcode-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.barcode-search-form .form-group {
    display: flex;
    flex-direction: column;
}

.barcode-search-form label {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.barcode-search-form input,
.barcode-search-form select {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.barcode-search-form input:focus,
.barcode-search-form select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.barcode-search-form input::placeholder {
    color: #666;
}

.barcode-search-status {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.barcode-results-section {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #333;
}

.barcode-results-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.barcode-results-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.barcode-order-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #444;
    transition: all 0.2s ease;
    cursor: pointer;
}

.barcode-order-card:hover {
    border-color: #007aff;
    background: #333;
}

.barcode-order-card.selected {
    border-color: #007aff;
    background: #1a3a4a;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.barcode-order-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.barcode-order-id {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007aff;
}

.barcode-order-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #00d4aa;
    color: #000;
}

.barcode-order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.barcode-order-detail {
    display: flex;
    flex-direction: column;
}

.barcode-order-detail-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.barcode-order-detail-value {
    color: #ffffff;
    font-weight: 500;
}

.barcode-order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.barcode-order-actions button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.barcode-order-actions .btn-process {
    background: #007aff;
    color: #ffffff;
}

.barcode-order-actions .btn-process:hover {
    background: #0056b3;
}

.barcode-order-actions .btn-select {
    background: #333;
    color: #ffffff;
    border: 1px solid #555;
}

.barcode-order-actions .btn-select:hover {
    background: #444;
}

.barcode-order-actions .btn-select.selected {
    background: #007aff;
    border-color: #007aff;
}

.barcode-no-results {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.barcode-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #555;
}

.barcode-no-results h4 {
    color: #888;
    margin-bottom: 0.5rem;
}

.barcode-no-results p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design for Barcode Search */
@media (max-width: 768px) {
    .barcode-search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .barcode-order-details {
        grid-template-columns: 1fr;
    }
    
    .barcode-order-actions {
        flex-direction: column;
    }
}

/* Barcode Order Items */
.barcode-order-items {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.barcode-order-items h5 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.barcode-order-items h5 i {
    color: #007aff;
}

.barcode-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.barcode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.barcode-item.matching-item {
    border-color: #00d4aa;
    background: rgba(0, 212, 170, 0.1);
}

.barcode-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.barcode-item-sku {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.barcode-item-title {
    color: #888888;
    font-size: 0.8rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.barcode-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.barcode-item-quantity .quantity {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.matching-badge {
    background: #00d4aa;
    color: #000000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.barcode-order-items.error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid #ff3b30;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.barcode-order-items.error p {
    color: #ff3b30;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Utility Classes */
.text-success { color: #00d4aa; }
.text-warning { color: #ff9500; }
.text-error { color: #ff3b30; }
.text-muted { color: #888888; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Pickwave Status Styles */
.pickwave-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.pickwave-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pickwave-badge.picked {
    background: #00d4aa;
    color: #000000;
}

.pickwave-badge.not-picked {
    background: #ff9500;
    color: #000000;
}

.pickwave-badge.not-in-wave {
    background: #666666;
    color: #ffffff;
}

.pickwave-badge.partial {
    background: #ff9500;
    color: #000000;
}

.pickwave-badge.cancelled {
    background: #ff3b30;
    color: #ffffff;
}

.pickwave-wave {
    font-size: 0.7rem;
    color: #888888;
    font-weight: 500;
}
