/* Modern Aisle Scanner Styling - Updated 2024-12-20 15:30 - Force Cache Refresh */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: #1e40af;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.main-content {
    padding: 40px 30px;
}

/* Clean Aisle Selector */
.aisle-selector-clean {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.aisle-select-clean {
    flex: 1;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.aisle-select-clean:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.btn-icon-clean {
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-icon-clean:hover {
    background: #1e3a8a;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
}

/* Clean Controls */
.controls-clean {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn-primary {
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Desktop-specific button styles */
@media (min-width: 769px) {
    .btn-primary, .btn-secondary {
        min-width: 160px;
        padding: 16px 24px;
        font-size: 1rem;
    }
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #1e3a8a;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-primary:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-secondary:hover:not(:disabled) {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary:disabled {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    font-weight: 600;
}

.file-upload-clean {
    position: relative;
}

.file-upload-clean input[type="file"] {
    position: absolute;
    left: -9999px;
}


.scanner-section {
    margin-bottom: 40px;
}

.camera-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-height: 300px;
}

.camera-viewport {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    background: transparent !important;
    min-height: 250px !important;
    max-height: 400px !important;
}

canvas {
    display: none;
}

.camera-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    pointer-events: none;
    background: transparent;
    z-index: 5;
}

.camera-overlay::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid rgba(30, 64, 175, 0.6);
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 150px;
}

.btn:hover {
    transform: translateY(-2px);
    background: #1e3a8a;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
    box-shadow: 0 5px 15px rgba(252, 182, 159, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(252, 182, 159, 0.4);
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.results-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
}

.result-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.result-value.highlight {
    color: #1e40af;
}

.error-message {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.divider span {
    background: #f8f9fa;
    padding: 0 20px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Navigation Bar */
.nav-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-items {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.nav-btn:hover {
    color: #1e40af;
    border-color: rgba(30, 64, 175, 0.3);
}

.nav-btn.active {
    background: #1e40af;
    color: white;
    border-color: transparent;
}

.aisle-selector select {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    min-width: 150px;
}

.aisle-selector select:focus {
    outline: none;
    border-color: #1e40af;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Aisles Management */
.aisles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.aisle-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.aisle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(30, 64, 175, 0.2);
}

.aisle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.aisle-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.aisle-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background: rgba(30, 64, 175, 0.1);
}

.btn-icon.danger:hover {
    background: rgba(255, 107, 107, 0.1);
}

.aisle-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.aisle-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-content.large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 25px 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px 25px;
    border-top: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Product Details */
.product-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.no-image {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item strong:first-child {
    color: #666;
    font-weight: 500;
}

.detail-item span:last-child {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #333;
}

/* OCR Information Styling */
.ocr-info {
    color: #28a745;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

.ocr-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.ocr-details h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
}

.ocr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.ocr-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.ocr-item strong {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ocr-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

/* Multi-Barcode Scanner Styling */
.multi-barcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.barcode-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.barcode-item:hover {
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.1);
}

.barcode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.barcode-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.barcode-format {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.barcode-details {
    margin-bottom: 15px;
}

.barcode-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.9rem;
}

.barcode-details .detail-row strong {
    color: #666;
    font-weight: 500;
}

.barcode-details .detail-row span {
    color: #333;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.barcode-text {
    word-break: break-all;
    font-size: 0.85rem;
}

.barcode-actions {
    display: flex;
    justify-content: center;
}

.bulk-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

/* Enhanced camera overlay for multi-barcode scanning */
.camera-overlay.multi-scan {
    border: 3px solid rgba(40, 167, 69, 0.8);
    background: rgba(40, 167, 69, 0.1);
}

.camera-overlay.multi-scan::before {
    border-color: rgba(40, 167, 69, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Multi-barcode scanning indicator */
.scanning-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: pulse-green 1.5s infinite;
}

/* Stock Controls */
.stock-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked + .radio-custom {
    border-color: #1e40af;
}

.radio-group input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #1e40af;
    border-radius: 50%;
}

/* Inventory Section */
.inventory-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.inventory-filters select {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

.inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.success {
    border-color: rgba(40, 167, 69, 0.3);
}

.stat-card.danger {
    border-color: rgba(220, 53, 69, 0.3);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-card.success .stat-number {
    color: #10b981;
}

.stat-card.danger .stat-number {
    color: #dc3545;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.inventory-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.inventory-card:hover {
    transform: translateY(-2px);
}

.inventory-card.in-stock {
    border-left-color: #28a745;
}

.inventory-card.out-of-stock {
    border-left-color: #dc3545;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.inventory-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.stock-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-status.in-stock {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stock-status.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.inventory-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.9rem;
}

.detail-row span:first-child {
    color: #666;
}

.detail-row strong {
    color: #333;
    font-family: 'Courier New', monospace;
}

.inventory-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #ddd;
}

/* Clean Results Section */
.results-section {
    margin-top: 30px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.results-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.result-status {
    background: #d1fae5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e40af;
}

.result-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.result-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    word-break: break-all;
}

.result-value.highlight {
    color: #1e40af;
    font-size: 1.1rem;
}

.error-message-clean {
    background: #fff5f5;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-weight: 500;
    border-left: 4px solid #fc8181;
    display: none;
}

.error-message-clean.show {
    display: block;
    animation: slideIn 0.3s ease;
}


/* Mobile-First Button Styles - Force Override */
@media screen and (max-width: 768px) {
    .header {
        display: none !important;
    }
    
    .main-content {
        padding: 10px 15px !important;
        margin-top: 0 !important;
    }
    
    .container {
        padding-top: 0 !important;
    }
    
    /* Force video to fill container and remove black bars */
    .camera-container {
        background: #f8f9fa !important;
        overflow: hidden !important;
    }
    
    .camera-viewport {
        background: #f8f9fa !important;
        overflow: hidden !important;
    }
    
    video {
        background: #f8f9fa !important;
        object-position: center !important;
    }
    .controls-clean {
        flex-direction: column !important;
        gap: 25px !important;
        margin-top: 30px !important;
    }
    
    .btn-primary {
        width: 100% !important;
        padding: 20px 30px !important;
        font-size: 1.4rem !important;
        min-height: 60px !important;
        border-radius: 15px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3) !important;
        min-width: auto !important;
        text-transform: uppercase !important;
        background: #1e40af !important;
        color: white !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .btn-secondary {
        width: 100% !important;
        padding: 20px 30px !important;
        font-size: 1.4rem !important;
        min-height: 60px !important;
        border-radius: 15px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2) !important;
        min-width: auto !important;
        text-transform: uppercase !important;
        background: white !important;
        color: #1e40af !important;
        border: 3px solid #1e40af !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    
    .btn-icon {
        font-size: 1.6rem !important;
        margin-right: 0 !important;
    }
    
    .btn-text {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
    }
}

/* Ultra-Aggressive Mobile Override */
@media screen and (max-width: 768px) {
    .btn-primary, .btn-secondary, #capture-button, #upload-button {
        width: 100% !important;
        padding: 20px 30px !important;
        font-size: 1.4rem !important;
        min-height: 60px !important;
        border-radius: 15px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    }
    
    .btn-primary, #capture-button {
        background: #1e40af !important;
        color: white !important;
        border: none !important;
    }
    
    .btn-secondary, #upload-button {
        background: white !important;
        color: #1e40af !important;
        border: 4px solid #1e40af !important;
    }
}

/* Additional Mobile Override - Target Specific Buttons */
@media screen and (max-width: 768px) {
    #capture-button, #upload-button {
        width: 100% !important;
        padding: 20px 30px !important;
        font-size: 1.4rem !important;
        min-height: 60px !important;
        border-radius: 15px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    
    #capture-button {
        background: #1e40af !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4) !important;
    }
    
    #upload-button {
        background: white !important;
        color: #1e40af !important;
        border: 4px solid #1e40af !important;
        box-shadow: 0 10px 30px rgba(30, 64, 175, 0.2) !important;
    }
}

/* Responsive Design */
/* Force mobile styles to override */
@media screen and (max-width: 768px) {
    body {
        padding: 15px !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .header h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .header p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    /* Mobile Camera - More Space */
    .camera-container {
        height: 350px;
        margin-bottom: 20px;
        background: #f8f9fa;
        min-height: 350px;
    }
    
    .camera-viewport {
        height: 350px;
        border-radius: 12px;
        background: #f8f9fa;
        min-height: 350px;
    }
    
    video {
        height: 350px !important;
        width: 100% !important;
        object-fit: cover !important;
        background: transparent !important;
        aspect-ratio: 16/9 !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }
    
    .camera-viewport {
        aspect-ratio: 16/9 !important;
        height: 350px !important;
        width: 100% !important;
    }
    
    /* Mobile Controls - Much Larger and Touch-Friendly */
    .controls-clean {
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
    }
    
    .btn-primary:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    }
    
    .btn-secondary:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
    }
    
    .btn-icon {
        font-size: 2rem !important;
        margin-right: 15px !important;
    }
    
    .btn-text {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
    }
    
    /* Mobile Aisle Selector */
    .aisle-selector-clean {
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .aisle-select-clean {
        padding: 18px 22px;
        font-size: 1.2rem;
        border-radius: 12px;
        min-height: 60px;
    }
    
    .btn-icon-clean {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        border-radius: 12px;
    }
    
    /* Mobile Results */
    .results-section {
        margin-top: 25px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .results-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .results-title {
        font-size: 1.4rem;
    }
    
    .result-status {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .result-display {
        gap: 15px;
    }
    
    .result-item {
        padding: 18px 22px;
        border-radius: 10px;
        min-height: 60px;
    }
    
    .result-label {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .result-value {
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .result-value.highlight {
        font-size: 1.3rem;
    }
    
    
    /* Mobile Error Messages */
    .error-message-clean {
        padding: 18px 22px;
        font-size: 1.1rem;
        border-radius: 12px;
        margin-top: 20px;
        font-weight: 600;
    }
    
    .camera-overlay {
        width: 200px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 15px 10px;
    }
    
    .camera-viewport {
        height: 200px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 28px 32px;
        font-size: 1.4rem;
        min-height: 80px;
    }
    
    .btn-icon {
        font-size: 1.8rem;
    }
    
    .btn-text {
        font-size: 1.4rem;
    }
}
