/* Mobile Camera Button Styles */

/* Hide camera button on desktop by default */
@media (min-width: 769px) {
    .btn-camera-mobile {
        display: none !important;
    }
}

/* Mobile search group adjustments */
@media (max-width: 768px) {
    .mobile-search-group {
        display: flex;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .mobile-search-group .input-modern {
        flex: 1;
        min-width: 0;
    }
    
    /* Show camera button on mobile */
    .btn-camera-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 1rem !important;
        min-width: auto !important;
        background: var(--success) !important;
        border-color: var(--success) !important;
        color: white !important;
    }
    
    .btn-camera-mobile:hover {
        background: var(--success-dark) !important;
        border-color: var(--success-dark) !important;
    }
    
    .btn-camera-mobile svg {
        width: 24px;
        height: 24px;
    }
    
    /* Hide camera button text on very small screens */
    .camera-btn-text {
        display: none;
    }
    
    /* Make search button more compact on mobile */
    #search-manual-btn {
        padding: 0 1rem !important;
    }
    
    .search-btn-text {
        display: none;
    }
    
    /* Show only icon in search button on mobile */
    #search-manual-btn svg {
        margin: 0;
    }
}

/* Slightly larger screens - show text */
@media (min-width: 400px) and (max-width: 768px) {
    .camera-btn-text {
        display: inline;
        margin-left: 0.25rem;
        font-size: 0.9rem;
    }
    
    .search-btn-text {
        display: inline;
        margin-right: 0.25rem;
    }
}

/* Desktop - hide mobile camera button, show original layout */
@media (min-width: 769px) {
    .search-btn-text {
        margin-right: 0.5rem;
    }
    
    #search-manual-btn svg {
        margin-left: 0.25rem;
    }
    
    /* Restore the divider and secondary camera section on desktop */
    .divider-with-text {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 2rem 0;
        color: var(--text-tertiary);
    }
    
    .divider-with-text::before,
    .divider-with-text::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--border);
    }
    
    .divider-with-text span {
        padding: 0 1rem;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .camera-section-secondary {
        display: block;
        text-align: center;
    }
}

/* Camera reader styles when active */
#reader {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    padding: var(--space-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#reader video {
    border-radius: var(--radius-md);
    width: 100% !important;
    height: auto !important;
}